Professional Documents
Culture Documents
alter table orders add constraint aw_order_table2 foreign key (Sman_ID) references
Salesman(Sman_ID);
alter table Bill add constraint aw_bill_table foreign key (Order_ID) references
orders(Order_ID);
alter table Bottle add constraint aw_bottle_table foreign key (Order_ID) references
orders(Order_ID);
insert into
orders(Order_ID,Order_Status,Delivery_Date,Manager_ID,Customer_ID,Sman_ID)
values
('od001','Completed','01/01/2020','mg001','cust001','sm001'),
('od002','Completed','05/01/2020','mg002','cust002','sm001'),
('od003','Pending','null','mg003','cust001','sm001')