Question: 1 . [ 2 0 points ] Given the following schema: Manufacturer { Name , Street, City, State, Zip, Phone } Product { PID ,

1.[20 points] Given the following schema:
Manufacturer {Name, Street, City, State, Zip, Phone}
Product {PID, Name, Buying_Price, Selling_Price, Size, Manufacturer_Name} Foreign Key {Manufacturer_Name} references Manufacturer,
Warehouse {Name, Location, City, State, Zip, Space}
Stores {Warehouse_Name, PID, Qty}
Foreign Key {Warehouse_Name} references Warehouse, Foreign Key {PID} references Product;
Write SQL Queries for the following:
2. Create table Stores and make sure that when a Warehouse is deleted all related tuples in Stores also deleted.

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!