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 part that costs more than $20 Find the colora of prssuplied by a supplier named TNeo' (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

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

Semantics Of A Networked World Semantics For Grid Databases First International Ifip Conference Icsnw 2004 Paris France June 2004 Revised Selected Papers Lncs 3226

Authors: Mokrane Bouzeghoub ,Carole Goble ,Vipul Kashyap ,Stefano Spaccapietra

2004 Edition

3540236090, 978-3540236092

More Books

Students also viewed these Databases questions

Question

6. How does novelty prepare us for the unpredictable?

Answered: 1 week ago