subject

Consider the following relational database schema for booking hotel rooms:Hotel (hotelNo , hotelName, city)Room (roomNo, hotelNo , type, price)Booking (hotelNo, guestNo, dateFrom , dateTo, roomNo)Guest (guestNo, guestName, guestAddress)whereHotel 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 guestNo is the primary key. Generate the relational algebra for the following queries:1. List all hotels2. List all single rooms with a price below $20 per night3. List the names and cities of all guests4. List the price and type of all rooms at the Grosvenor Hotel5. List all guests currently staying at Grosvenor Hotel.6. List the names of the guests currently having a booking.7. 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.8. List the guest details (guestNo, guestName, and guestAddress) of all guests staying at the Grosvenor Hotel.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
Aletter or menu command that starts an action when the user presses the designated letter and the alt key together is called what?
Answers: 1
question
Computers and Technology, 22.06.2019 08:00
Someone with this coz i don’t really know what i can choose, just pick whatever u want. homework - you need to choose a website that you like or use frequently. you must visit the website and discuss 6 different features/parts/aspects of the website that you think makes it good. (100 words)
Answers: 2
question
Computers and Technology, 22.06.2019 13:30
Jane’s team is using the v-shaped model for their project. during the high-level design phase of the project, testers perform integration testing. what is the purpose of an integration test plan in the v-model of development? a. checks if the team has gathered all the requirements b. checks how the product interacts with external systems c. checks the flow of data in internal modules d. checks how the product works from the client side
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Consider the following function main: int main() { int alpha[20]; int beta[20]; int matrix[10][4]; . . } a. write the definition of the function inputarray that prompts the user to input 20 numbers and stores the numbers into alpha. b. write the definition of the function doublearray that initializes the elements of beta to two times the corresponding elements in alpha. make sure that you prevent the function from modifying the elements of alpha. c. write the definition of the function copyalphabeta that stores alpha into the first five rows of matrix and beta into the last five rows of matrix. make sure that you prevent the function from modifying the elements of alpha and beta. d. write the definition of the function printarray that prints any onedimensional array of type int. print 15 elements per line. e. write a c11 program that tests the function main and the functions discussed in parts a through d. (add additional functions, such as printing a two-dimensional array, as needed.)
Answers: 3
You know the right answer?
Consider the following relational database schema for booking hotel rooms:Hotel (hotelNo , hotelName...
Questions
question
Chemistry, 05.10.2021 01:00
question
Mathematics, 05.10.2021 01:00
Questions on the website: 13722363