Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 3 (Relational Algebra) (22 points] Consider the following relations. The primary keys are underlined. All attributes are of type string if not indicated otherwise.

image text in transcribed
Exercise 3 (Relational Algebra) (22 points] Consider the following relations. The primary keys are underlined. All attributes are of type string if not indicated otherwise. Suppliers (SID, sname, address) Parts (pID, pname, color) Catalog (sID, PID, cost: integer) 1. [6 points) Find the names of the most expensive parts supplied by supplier named 'NESCS'. 2. [4 points) Find the names of the parts supplied by at least two different suppliers 3. [4 points) Find the ids of suppliers who supply every red part or supply every green part. 4. [4 points) Find pairs of supplier ids such that the supplier with the first sID charges more for the same part than the supplier with the second sID. 5. [4 points) Find the names of suppliers who supply only red parts

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

Find the derivative of y= cos cos (x + 2x)

Answered: 1 week ago

Question

6. Vanguard

Answered: 1 week ago