Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Required to give the relational algebra, tuple relational calculus, and domain relational calculus expressions BP 10140 somework pdi Homework 1 The following tables form part

image text in transcribed
Required to give the relational algebra, tuple relational calculus, and domain relational calculus expressions
image text in transcribed
BP 10140 somework pdi Homework 1 The following tables form part of a database held in a relational DRME Hotel (hotela hotelName.city] Room (roomNo, hotele, type.price) Booking hotel Nogues.No dateFrom_dateTo room.Ne) Guest guest.No guestName, guestAddress) where Hotel contains hotel details and hotel is the primary key Room contains room details for each hotel and (roon No, hoteNe) forms the primary key Booking contains details of bookings and hotelagoste daterom) forms the primary kery Guest contains guest details and guest No is the primary key Generate the relational algebra, tuple relational calcules, and domain relational calculus expressions for the following queries 1. List all hotels 2 List all single rooms with a price below $100 per night 3. List the names and cities of all guests 4. List the price and type of all rooms at the Grosvenor Hotel 5. List the details of all rooms at the Green Hotel including the name of the guest staying in the room, if the room is occupied 6. List the guest details (gosti gostima questAddress of all guests staying at the Grosvenor Hotel Homework 1 The following tables form part of a database held in a relational DBMS: Hotel (hotelNo, hotelName, city) Room (roomNo hotelNo, type, price) Booking (hotelNo, guestNo. dateFrom dateTo, roomNo) Guest (guestNo. guestName, guestAddress) 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 bookings and (hotelNo, guestNo, dateFrom) forms the primary key; Guest contains guest details and guest No is the primary key. Generate the relational algebra, tuple relational calculus, and domain relational calculus expressions for the following queries: 1. List all hotels. 2. List all single rooms with a price below $100 per night. 3. List the names and cities of all guests. 4. List the price and type of all rooms at the Grosvenor Hotel. 5. 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. 6. List the guest details (guestNo, guest Name, and guestAddress) of all guests staying at the Grosvenor Hotel

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions