My question is also based off How to find all pizzerias that serve every pizza eaten by people over 30?
This is the database I am using for my queries
https://class.stanford.edu/c4x/DB/RA/asset/pizzadata.html
the syntax for writing out relational algebra queries is based off http://www.cs.duke.edu/~junyang/ra/ .
My objective is to "Find all pizzerias that serve only pizzas eaten by people over 30. ". I have the fist couple of steps down but I am struggling with finding pizzerias that have a complete match. Based on the last thread I looked at for the question , it seemed like the div operator was necessary to find the pizzeria that has a complete match with a given list of pizzas. However from http://www.cs.duke.edu/~junyang/ra/, I couldn't find such a div operator. Is there a work around for the div operator? The other answers on that thread were too convoluted and didn't work. This is my query so far
\project_{pizzeria, pizza} (
\select_{age > 30} (
Person \join Eats
)
\join
Serves
)
What I have here is a query that first locates people over 30 and joins those people with the pizzas they eat. then I join with Serves so I can see the pizzerias that serve those pizzas. I understand I need a complete match - pizzas that serve only what people over 30 eat. That is why I feel like the div operator would be very helpful.