Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following tables form part of a database held in a relational DBMS: - Hotel (hotelNo, hotelName, city) - Room (roomNo, hotelNo, type, price) -

image text in transcribed
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) where Hotel contains hotel details and hotelNo is the primary key; Room contains room details for each hotel and (roomNo, hoteIN) forms the primary key; Booking contains details of bookings and (hotelNo, guestNo, dateFrom) forms the primary key; Guest contains guest details and guestNo is the primary key. Generate the relational algebra expressions for the following queries: 1. ( 3 points) List all hotels. 2. ( 3 points) List all single rooms with a price below $100 per night. 3. (3 points) List the names and cities of all guests. 4. ( 3 points) List the price and type of all rooms at the Grosvenor Hotel. 5. (4 points) 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. 6. (4 points) List the guest details (guestNo, guestName, and guestAddress) of all guests staying at the Grosvenor Hotel

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Account for the direct costs of raising external capital

Answered: 1 week ago

Question

Question What is an educational benefit trust and how is it used?

Answered: 1 week ago

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago