Question: Exercise 2 (Relational Algebra) (25 points) Consider the following relations for an online Cinema Booking system. The primary keys are underlined. All attributes are of
Exercise 2 (Relational Algebra) (25 points) Consider the following relations for an online Cinema Booking system. The primary keys are underlined. All attributes are of type string if not indicated otherwise. Theaters(tID, name, location) Auditoriums(tID, alD, movie title, price: integer, number of seats: integer) Book(tID, alD, CID, seat number, date) Customers(CID, name, address) A theater usually has several auditoriums. Assume that only the movies that are currently played on auditoriums of theaters are stored. 1. [4 points) Find the names of customers who have watched movies at every theater in Gainesville. 2. [3 points) Find the names of customers who never booked. 3. [6 points) Find the names of customers who booked the movie titled 'Parasite' more than once. 4. [4 points) Find the name of the theater that has the biggest in terms of the number of seats) auditorium. 5. [4 points) Find the names of customers who booked 'Parasite' and 'End game'. 6. [4 points) Find the names of movies that are playing at the theaters where the movie End game' is on (exclude 'End game' in your answer)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
