Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the database description below: Tb _ Supplier ( Supp _ ID , Name, City ) Tb _ Consumer ( Con _ ID , Name,

Given the database description below:
Tb_Supplier(Supp_ID, Name, City)
Tb_Consumer(Con_ID, Name, City)
Tb_Product(Prod_ID, Name, MU)
Tb_Offers(Supp_ID, Prod_ID, Quantity, Price)
Tb_Requests(Con_ID, Prod_ID, Quantity, Price)
Tb_Transactions(T_ID, Supp_ID, Con_ID, Prod_ID, Quantity, Price)
Solve the following queries using Except and Intersect:
1) Name of suppliers from Wausau or offering computers or offering oranges?
2) Name of suppliers who do not have an offer?
3) Name of suppliers offering cars and computers?
4) Products nobody purchased in Madison?
5) Cities where neither cars nor computers are offered?
6) Name of suppliers offering only cars and computers?
7) Name of products not offered in Chicago?
8) Name of products offered in Chicago, but not requested in Madison?
9) Name of suppliers that sold only cars and computers and only in Madison?
10) Name of products sold in Chicago, but not requested in Madison?
11) Name of suppliers that sold at most one product type (do not use the COUNT()
function)?
12)Supplier cities where none of the suppliers has any offers?

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

More Books

Students also viewed these Databases questions