Question: 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
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.
(f) List the details of all rooms at the Grosvenor Hotel, including the name of the guest staying in the room, if the room is occupied.
(g) List the guest details (guestNo, guestName, and guestAddress) of all guests staying at the Grosvenor Hotel.
Step by Step Solution
3.34 Rating (175 Votes )
There are 3 Steps involved in it
a RA Hotel TRC H HotelH DRC hotelNo hotelName city HotelhotelNo hotelName city b RA typeS price 20 Room TRC R RoomR Rtype S Rprice 20 DRC roomNo hotel... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
672-CS-DB (1233).docx
120 KBs Word File
