Question: An order-processing database for a company may have the following six relations: CUSTOMER (Cust#, Cname, City) ORDER (Order#, Odate, Cust#, Ord_Amt) ORDER_ITEM (Order#, Item#, Qty)

An order-processing database for a company may have the following six relations:

CUSTOMER (Cust#, Cname, City)

ORDER (Order#, Odate, Cust#, Ord_Amt)

ORDER_ITEM (Order#, Item#, Qty)

ITEM (Item#, Unit_price)

SHIPMENT (Order#, Warehouse#, Ship_date)

WAREHOUSE (Warehouse#, City)

where Ord_Amt is the total spent on an order (in dollars); Odate refers to when an order was placed; Ship_date refers to when an order was shipped from a warehouse.

Assumption: an order can be shipped from multiple warehouses

Based on intuition, which of these attributes are foreign keys for this schema, and to which relation (and primary/candidate key) would each reference? Explicitly state any assumptions you make. (15 Points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!