Question: Database using Relational Algebra Consider the following schema: Supplier (sid, sname, address) Part (pid, pname, color) Cata- log (sid, pid, cost) The primary keys are

Database using Relational Algebra

Database using Relational Algebra Consider the following schema: Supplier (sid, sname, address)

Consider the following schema: Supplier (sid, sname, address) Part (pid, pname, color) Cata- log (sid, pid, cost) The primary keys are underlined. The Catalog relation list the process charged for parts by supplies. Write each of the following queries by relational algebra 1. Find the sids of suppliers who supply every red or supply every green part 2. Find pairs of sids such that the supplier with the first sid charges more for some part than the supplier with the second sid. 3. Find the pids of parts supplied by at least two different suppliers 4. Find the pids of the most expensive parts supplied by suppliers named Ahmed 5. Find the pids of parts supplied by every supplier at less than 200S. (If any sup- plier does not supply the part or charges more than 200 $ for it, the part is not selected.)

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!