Reputation: 39
The Database has the following tables:
Describe the following tuple relational calculus in plain English, as well as, convert it to a relational algebra expression.
{H.hotelName, G.guestName, B1.dateFrom, B2.dateFrom | Hotel(H) ∧Guest(G) ∧ Booking(B1) ∧ Booking(B2) ∧H, hotelNo =B1.hotelNo ∧ G.guestNo = B1.guestNo ∧ B2.hotelNo = B1.hotelNo ∧ B2.guestNo = B1.guestNo ∧B2.dateFrom ≠ B1.dateFrom}
Upvotes: 1
Views: 173
Reputation: 1723
All pairs of bookings made by the same person at the same hotel that do not start on the same date.
Upvotes: 1