Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedWhat 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

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

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

2. Identify issues/causes for the apparent conflict.

Answered: 1 week ago

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago