Question: Use the table below to solve a,b,c,d and e Generate the relational algebra, tuple relational calculus, and domain relational calculus expressions for the following queries:
Generate the relational algebra, tuple relational calculus, and domain relational calculus expressions for the following queries: (a) List all hotels. (b) List all single rooms with a price below 20 per night. (c) List the names and cities of all guests. (d) List the price and type of all rooms at the Grosvenor Hotel. (e) List all guests currently staying at the Grosvenor Hotel. The following tables form part of a database held in a relational DBMS: Hotel (hotelNo, hotelName, city) Room (roomNo, hotelNo, type, price) Booking (hotelNo, guestNo, dateFrom, dateTo, roomNo) Guest (guestNo, guestName, guestAddress)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
