Question: SQL Schemas: Beers(name, manf) Bars(name, addr, license) Drinkers(name, addr, phone) Likes(drinker, beer) Sells(bar, beer, price) Frequents(drinker, bar) In MYSQL query, please express the following: 1.

SQL Schemas:

Beers(name, manf)

Bars(name, addr, license)

Drinkers(name, addr, phone)

Likes(drinker, beer)

Sells(bar, beer, price)

Frequents(drinker, bar)

In MYSQL query, please express the following:
1. Bars which serve no beer which David likes (NOT EXISTS with subquery which lists beers which likes, beer is the correlated variable in this query)

2. Beers which are liked by at most one drinker who frequents Cabana

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!