Starting from:

$25

CS336 - HW1 - Solved

Assignment:

Write SQL queries for each of the 8 queries below and execute them on the database instance  provided in our BarBeerDrinker database (instructions how to connect and download SQL query workbench in the document posted in resources)

  Text file showing

a) Each query (8)
b) the results returned  by the practice database Bar-Beer-Drinker Instance(8)

LIST OF QUERIES:


1. Beers other than Hefeweizen which are served by Gecko Grill bar
2. Drinkers  who like some beers which Justin also likes
3. Pairs of drinkers and bars such that a drinker frequents the bar and the bar serves at least one beer which the drinker likes
4. Bars which are frequented by Justin or Rebecca but not by both of them
5. Drinkers who frequent bars which sell some beer that they like
6. Bars which serve some beers which John or Rebecca like and which are cheaper than $5
7. Drinkers who like both Hefeweizen and Killian's
8. Bars with names containing "The"
 

More products