Question: Section 2 This section covers relational algebra (50 points). (A) Consider the following schema: Suppliers(sid: integer, sname: varchar(20), address: varchar(50)) Parts(pid: integer, pname: varchar(20), color:

 Section 2 This section covers relational algebra (50 points). (A) Consider

Section 2 This section covers relational algebra (50 points). (A) Consider the following schema: Suppliers(sid: integer, sname: varchar(20), address: varchar(50)) Parts(pid: integer, pname: varchar(20), color: varchar(15)) Catalog(sid: integer, pid: integer, cost: real) The key fields are underlined .Domains of each field are listed after field name The Catalog relation lists prices charged for parts by Suppliers Write the following queries in relational algebra (30 points): (i) Find the names of suppliers who supply some part that costs more than $20 () Find the colors of parts supplied by a supplier named 'Neo (II) Find the sids of suppliers who supply some yellow part and some black part (iv) Find the sids of suppliers who supply every yellow part (v) Find the pids of parts supplied by every supplier at less than $100 (vi) Find the names of suppliers who do not supply a yellow part

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