Question: using sql (select from where) to answer the question Find the drinkers who like either Bud or Miller, but not both. Find the names and

using sql (select from where) to answer the question

using sql (select from where) to answer the question Find the drinkers

Find the drinkers who like either Bud or Miller, but not both.

Find the names and addresses of bars such that all of their beers are sold less than $ 3.0.

Find the bars such that all of their beers prices are lower than all the beers sold in Joss Bar. Do not use aggregate functions such as MIN, MAX.

Our Running Example All our SQL queries will be based on the following database schema O Underline indicates key attributes. Beers(name, manf) Bars(name, addr, license) Drinkers(name, addr, phone) Likes(drinker, beer) Sells(bar, beer, price) Frequents(drinker, bar)

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!