Problem 1
Consider the following collection of relational schemas:
professor(profname, deptname)
department(deptname, building)
committee(profname,commname)
(a). Find All the Professors Who Are in Any One of the Committees that Professor Smith is in
(b). Find All the Professors Who Are in at Least All Those Committees that Professor Smith is in
(c). Find All the Professors Who Are in Exactly (i.e., no More and no less) All Those Committees that Professor Smith is in
(d). Find All the Professors Who Have Offices in at Least All Those Buildings that Professor Smith Has Offices in
Problem 2
Consider a database with the following schema:
Person(name, age, gender)
Frequents(name, pizzeria)
Eats(name, pizza)
Serves(pizzeria, pizza, price)
(a). Find All Pizzerias Frequented by at Least One Person under the Age of 18
(b). Find the Names of All Females Who Eat either Mushroom or Pepperoni Pizza (or both)
(c). Find the Names of All Females Who Eat both Mushroom and Pepperoni Pizza
(d). Find All Pizzerias that Serve at Least One Pizza that Amy Eats for less than $10.00
(e). Find All Pizzerias that Are Frequented by only Females or only Males
(f). For Each Person, Find All Pizzas the Person Eats that Are not Served by Any Pizzeria the Person Frequents. return All such Person (name) / Pizza Pairs
(g). Find the Names of All People Who Frequent Every Pizzeria Serving at Least One Pizza They Eat