CSC 443 Data Base Management Systems
Dr. R. M. Siegfried
Assignment 9 - The database specified on p. 108 and p. 130/5.12
Due Wednesday, November 13, 2013
The database specified on p. 108
The following tables form part of a database in a relation DBMS:
- Hotel
(hotelNo, hotelName, city)
- Room
(roomNo, hotelNo, type, price)
- Booking
(hotelNo, guestNo, dateFrom,dateTo, roomNo)
- Guest
(guestNo, guestName, guestAddress)
Exercise 5.12
Generate the relational algebra for the following queries:
- List all hotels.
- List all single rooms with a price below £20 per night.
- List the names and cities of all guests.
- List the price and type of all room at the Grosvenor Hotel.
- List all guests currently staying at the Grosvenor Hotel.
- 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.
- List the guest details (guestNo, guestName and guestAddress) of all guests
staying at the Grosvenor Hotel.
[Back to the Assignment
Page]