DBS-Lab Assignment 1
DBS-Lab Assignment 1
(CLO-5) [Apply data processing operations on both relational and non-relational DBMS.]
The following tables form part of a database held in a relational DBMS:
where Hotel contains hotel details and hotelNo is the primary key;
Room contains room details for each hotel and (roomNo, hotelNo) forms the primary key;
Booking contains details of the bookings and (hotelNo, guestNo, dateFrom) forms the
primary key;
and Guest contains guest details and guestNo is the primary key.
Q1) Describe the relations that would be produced by the following relational algebra operations:
Q2) Generate the relational algebra expressions for the following queries :