table no:2
1 create table category
2 (cat_bus_code varchar2(10),
3 cat_code varchar2(10),
4 cat_name varchar2(25),
5 constraint cat_pk primary key(cat_bus_code),
6* constraint cat_bus_code_fk foreign Key (cat_bus_code) References bus_unit (
bus_u_code))
table no:3
https://www.youtube.com/watch?v=pRLnU0lWEXk
table no 4:
table no 5:
table no 6:
1 create table vendor_setup
2 (vs_code varchar2(10),
3 vs_name varchar2(30),
4* constraint vs_pk primary key (vn_code))
table no 7;
table no 8:
table no 9:
create table purchase_return_master
(prm_bill varchar2(10),
prm_item_name varchar2(20),
prm_ven_c varchar2(10),
prm_wh_c varchar2(10),
prm_date date,
constraint prm_pk primary key (prm_bill),
constraint prm_fk foreign key(prm_item_name) references item_setup(is_code),
constraint prm_fk2 foreign key(prm_ven_c) references vendor_setup(vs_code),
constraint prm_fk3 foreign key(prm_wh_c) references warehouse_setup(wh_code))
table no 10:
table no 11:
create table sale_return_master
(srm_bill varchar2(10),
srm_item_name varchar2(20),
srm_cus_c varchar2(10),
srm_wh_c varchar2(10),
srm_date date,
constraint srm_pk primary key (srm_bill),
constraint srm_fk foreign key(srm_item_name) references item_setup(is_code),
constraint srm_fk2 foreign key(srm_cus_c) references vendor_setup(vs_code),
constraint srm_fk3 foreign key(srm_wh_c) references warehouse_setup(wh_code))