, Cname, City) ORDER(Order#, Odate,
Custw, Ord Amt) ORDER_I…
#
Consider the following six relations for an order-processing database
application
in a company:
CUSTOMER(Cust#, Cname, City)
ORDER(Order#, Odate, Custw, Ord Amt)
ORDER_ITEM(Order#, Item#, C2ty)
ITEM(Item#, Unicprice)
SHIPMENT(Order#, Warehouse#, Ship_date)
WAREHousE(Warehouse#, City)
Here, Ord_Amt refers to total dollar amount of an order; Odate is the date the
order was placed; Ship_date is the date an order is shipped from the
warehouse.
Assume that an order can be shipped from several warehouses. Specify the
foreign
keys for this schema, stating any assumptions you make.