Question: ( 2 4 points ) Consider the following relations, where the primary keys are underlined. Customer ( cid , cname, age ) Reserve ( cid
points Consider the following relations, where the primary keys are underlined.
Customer cid cname, age
Reserve cid hid, no date
Hotel hid hname
Room hid no rate
Let C be Customer, let RE be Reserve, let R be Room, and let H be Hotel.
Write the relational algebra for the following queries.
points Retrieve the names of customers who have reserved at least one room in the FAU
hotel.
points Retrieve the names of hotels where a room rate or price is higher than $
points Retrieve the names of customers who have never reserved a room in the FAU hotel.
points Retrieve the names of customers who have made reservations at either the 'FAU' hotel
or the 'Boca' hotel.
points Retrieve the names of customers who have made reservations at both the 'FAU' hotel
and the 'Boca' hotel.
points Retrieve the names of customers who have reserved the same room on different dates.
points Retrieve the names of customers who have reserved all rooms in the FAU hotel.
pointsDo not use the aggregation function Retrieve the name of the hotel with the highest
room rate or price
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
