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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:00, trintrin227
In he example code, what does the title attribute create? a tool tip an element a source a markup
Answers: 1
image
Computers and Technology, 22.06.2019 21:00, jarrettashlyn
Write a method so that the main() code below can be replaced by the simpler code that calls method original main(): public class calcmiles { public static void main(string [] args) { double milesperhour; double minutestraveled; double hourstraveled; double milestraveled; milesprhour = scnr. nextdouble(); minutestraveled = scnr. nextdouble(); hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; system. out. println("miles: " + milestraveled); } }
Answers: 2
image
Computers and Technology, 24.06.2019 04:30, BobBball9126
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
image
Computers and Technology, 24.06.2019 17:40, HealTheWorld
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately
Answers: 2
You know the right answer?
Consider the following relational database schema for booking hotel rooms:Hotel (hotelNo , hotelName...

Questions in other subjects: