You are on page 1of 1

SELF WORK

1. Consider the following relation:

HOTEL (HNO, HNAME, CITY)

ROOM (RNO , HNO , RTYPE , RCOST)

BOOKING (HNO, GNO, DOB, DOE, RNO)

GUEST (GNO, GNAME, GCITY)

Based on the above given relations draw the Relation Algebraic query tree for the
following query.
i) List the Name of Hotels which are located in Mumbai city, Room cost is below
2000 and its Date of booking is before 15-oct-2011.
ii) List the Guest Name and Hotel Name where Hotel is located in the same city from
where guest belongs to.
iii) List the Room type and Room Cost of the Hotels which are located in Bangalore
and date of booking is 21-NOV-2011.

2. Consider the following Relations:


BOOK ( B_Id , B_Title , B_Price , B_Author)
CUSTOMER ( C_Id ,C_Name , C_City ,C_Age)
ORDER (O_Id , B_Id , C_Id , No_of_Book , O_Date)

Based on the above relations generate relational algebraic query tree for given statements.
i) List the Name of the Book and its Customer whose age is bellow 32
years, author Name is ‘Navathe’ and book was ordered before 21-Nov-2011.
ii) List the Customers Name who is from Agra city ordered for the book whose price is
bellow 500 and O_Date is after 12-AUG-2011

3) Increasing complexity in business process has given birth of new data model. Justify this
statement in context of object-oriented database and object relational database. Mention
various advantages of OODBMS and ORDBMS? Also discuss some of its limitations

You might also like