Question: What would be MySQL code for the following problems. 1)Drinkers who frequent only one bar 3) Bars which serve no beer(s) which Joe likes (you

What would be MySQL code for the following problems. 1)Drinkers who frequentWhat would be MySQL code for the following problems.

1)Drinkers who frequent only one bar

3) Bars which serve no beer(s) which Joe likes (you can use one of the outer joins if you want) 4) Bars which every drinker frequents 5)Drinkers who frequent exactly one bar of bar(s) which Vince does not frequent 6) Bars which no drinker frequents

7) Find Bars which serve all beers that Cabana serves and possibly more

8) Get triples such that drinker likes the beer, it is sold by a bar but the drinker does not frequent that bar (perhaps does not know!)

Beers(name, manf) Bars(name, addr, license) Drinkers(name, addr, phone) Likes(drinker, beer) Sells(bar, beer, price) Frequents(drinker, bar) Underline = key (tuples cannot have the same value in all key attributes)

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!