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 orderprocessing database application:
CUSTOMER Cust# Cname, City
ORDER Order# Odate, Cust# Ord amt
ORDERITEM Order# Item# Qty
ITEM Item# Unitprice
SHIPMENT Order# Warehouse# Shipdate
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 ORDERITEM referencing ORDER
Order# is a foreign key of SHIPMENT referencing ORDER
Item# is a foreign key of ORDERITEM 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
