Question: Consider the following relations for an order - processing database application: CUSTOMER ( Cust# , Cname, City ) ORDER ( Order# , Odate, Cust# ,

Consider the following relations for an order-processing database application:
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)
The primary keys for the relations in the above schema are underlined, and the foreign keys for this schema are as below:
Warehouse# is a foreign key of SHIPMENT referencing WAREHOUSE
Order# is a foreign key of ORDER_ITEM referencing ORDER
Order# is a foreign key of SHIPMENT referencing ORDER
Item# is a foreign key of ORDER_ITEM referencing ITEM
Cust# is a foreign key of ORDER referencing CUSTOMER
Discuss the integrity constraints that could be violated and the required conditions if a WAREHOUSE tuple is deleted from the
WAREHOUSE relation.

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 Programming Questions!