create table Customers(
CustomersID varchar2(9),
Balance number(3),
primary key(CustomersID));
insert into Customers values('Customer1',100);
insert into Customers values('Customer2',300);
insert into Customers values('Customer3',600);
insert into Customers values('Customer4',900);
create table Orders(
CustomersID varchar2(9),
OrderID varchar2(3),
primary key(CustomersID,OrderID));
insert into Orders values('Customer1','1-1');
insert into Orders values('Customer1','1-2');
insert into Orders values('Customer1','1-3');
insert into Orders values('Customer1','1-4');
insert into Orders values('Customer2','2-1');
insert into Orders values('Customer2','2-2');
insert into Orders values('Customer2','2-3');
insert into Orders values('Customer3','3-1');
insert into Orders values('Customer3','3-2');
insert into Orders values('Customer4','4-1');
insert into Orders values('Customer4','4-2');
insert into Orders values('Customer4','4-3');
create table Details(
OrderID varchar2(3),
ItemID varchar2(5),
primary key(OrderID,ItemID));
insert into Details values('1-1','Item1');
insert into Details values('1-2','Item1');
insert into Details values('1-3','Item2');
insert into Details values('1-4','Item3');
insert into Details values('2-1','Item1');
insert into Details values('2-2','Item2');
insert into Details values('2-3','Item3');
insert into Details values('3-1','Item1');
insert into Details values('3-2','Item3');
insert into Details values('4-1','Item1');
insert into Details values('4-2','Item2');
insert into Details values('4-3','Item2');
create table Items(
ItemID varchar2(5),
ItemName varchar2(6),
primary key(ItemID));
insert into Items values('Item1','potion');
insert into Items values('Item2','elixir');
insert into Items values('Item3','ether');
commit;