Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

image text in transcribed

(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 blue part () Find the sids of suppliers who do not supply a red part (i) Find the sids of suppliers who supply some blue or red part (iv) Find the sids of suppliers who supply some blue part and some red part (v) Find the sids of suppliers who supply every blue part (vi) Find the pids of parts supplied by every supplier at less than $50. (If a supplier either does not supply the part or charges more than $50, the part is not selected.)

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_2

Step: 3

blur-text-image_3

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

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago