1. Find the names of all red parts. 2. Find all prices for parts that are red or green. (A part may have different prices from different manufacturers. 3. Find the sIDs of all suppliers who supply a part that is red or green. 4. Find the names of all suppliers who supply a part that is red or green.

Database Systems: Design, Implementation, & Management
11th Edition
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Chapter11: Database Performance Tuning And Query Optimization
Section: Chapter Questions
Problem 13RQ
icon
Related questions
Question

Solve with hand

Schema
Suppliers (sID, sName, address)
Parts (pID, pName, colour)
Catalog (sID, pID, price)
Solve all queries below twice. First using SQL, then using Relational
Algebra:
1. Find the names of all red parts.
2. Find all prices for parts that are red or green. (A part may have
different prices from different manufacturers.
3. Find the sIDs of all suppliers who supply a part that is red or green.
4. Find the names of all suppliers who supply a part that is red or
green.
Transcribed Image Text:Schema Suppliers (sID, sName, address) Parts (pID, pName, colour) Catalog (sID, pID, price) Solve all queries below twice. First using SQL, then using Relational Algebra: 1. Find the names of all red parts. 2. Find all prices for parts that are red or green. (A part may have different prices from different manufacturers. 3. Find the sIDs of all suppliers who supply a part that is red or green. 4. Find the names of all suppliers who supply a part that is red or green.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Schema

Suppliers (sID, sName, address)

Parts (pID, pName, colour)

Catalog (sID, pID, price)

Solve all queries using Relational Algebra:

1. Find the names of all red parts.
2. Find all prices for parts that are red or green. (A part may have different prices from different manufacturers.
3. Find the sIDs of all suppliers who supply a part that is red or green.
4. Find the names of all suppliers who supply a part that is red or green.
Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Probability Problems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr