1)create table client_master45
1)create table client_master45
Table created.
1 row created.
1 row created.
1 row created.
1 row created.
1 row created.
2) create table product_master45
2 (product_no varchar(6) primary key check(product_no like 'P%'),
3 discription varchar(50) not null,
4 profit_percent number(5,2) not null,
5 unit_measure varchar(10) not null,
6 qty_on_hand number(8) not null,
7 reorder_lvl number(8) not null,
8 sell_price number(8,2)not null check(sell_price not like 0),
9 cost_price number(8,2) not null check(cost_price not like 0));
Table created.
SQL>
SQL> insert all
2 into product_master24 values('P00001','1.44
Floppies',5,'Piece',100,24,525,500)
3 into product_master24
values('P03453','Monitors',6,'Piece',10,3,12400,11280)
4 into product_master24 values('P06734','Mouse',5,'Piece',24,5,1050,1000)
5 into product_master24 values('P07865','1.22
Floppies',5,'Piece',100,24,525,500)
6 into product_master24
values('P07868','Keyboards',2,'Piece',10,3,3150,3050)
7 into product_master24 values('P07885','CD
Drive',2.5,'Piece',10,3,5250,5100)
8 into product_master24 values('P07965','540 Hdd',4,'Piece',10,3,8400,8000)
9 into product_master24 values('P07975','1.44
Drive',5,'Piece',10,3,1050,1000)
10 into product_master24 values('P08865','1.22 Drive',5,'Piece',2,3,1050,1000)
11 select * from dual;
9 rows created.
insert all
into challan_header24 values('CH9001','O19001','12-dec-95','Y')
into challan_header24 values('CH6865','O46865','12-nov-95','Y')
into challan_header24 values('CH3965','O10008','12-oct-95','Y')
select * from dual;
insert all
into challan_details24 values('ch9001','p00001',4)
into challan_details24 values('ch9001','p07965',1)
into challan_details24 values('ch9001','p07885',1)
into challan_details24 values('ch6865','p07868',3)
into challan_details24 values('ch6865','p03453',4)
into challan_details24 values('ch6865','p0001',10)
into challan_details24 values('ch3865','p0001',5)
into challan_details24 values('ch3865','p07975',2)
select *from dual;