Question: Do answer all items below and submit a word / pdf file via Canvas. If you have a question, email me or ask during class
Do answer all items below and submit a wordpdf file via Canvas. If you have a question, email me or ask during class hours.
a points Map the UNIVERSITY database schema shown above into a relational database schema. DRAW RELATIONAL SCHEMA FOR QUESTION A
b points Write appropriate SQL DDL statements for declaring the UNIVERSITY relational database schema.
points Consider the following schema.
SUPPLIERS SID : integer, SNAME : string, ADDRESS : string
PARTS PID: integer, PNAME : string, COLOR : string
CATALOG SID: integer, PID : integer, COST : real
suppliers. CATALOG.SID is a foreign key referring to SUPPLIERS.SID and CATALOG.PID is a foreign key referring to PARTS.PID.
Write the following queries in relational algebra points and in SQL points
a Find the names of parts supplied by suppliers who are at Central Ave.
b Find the city of the suppliers supplying a red part that costs more than $
c Find the SIDs of suppliers who supply a red part and a green part.
d Find the SIDs of suppliers who supply a red part or a green part.
e Find pairs of PIDs such that the part with the first PID is sold at a higher price by a supplier than the part with the second PID.
f Find the PIDs of parts supplied by a supplier who is at the city of Newark and by a supplier who is at the city of Trenton.
g Find the PIDs of parts supplied by each and every supplier.
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
