Question: Write the following SQL queries for the Hotel Management System attached. Each students have to answer only 3 of the questions below. The question assignments

Write the following SQL queries for the Hotel Management System attached. Each students have to answer only 3 of the questions below. The question assignments are given below for each student individually. Assume that the current Date is December 15, 2020 while writing the SQL queries.

a) Find the most preferable room type based on past reservations

b) Which room types are not available on December 26th and 27th, 2020?

c) What is the most common room type for the current reservations? Please include the description of the room type.

Write the following SQL queries for the Hotel Management System attached. Each

AVAILABILITY PREFERENCES RESERVATION 1 TypeID 1 PREFERENCES 1 CID 1 Date NumberOfAvailableRooms ROOM TYPE Reservation Number Reservation CancellationDate Customer D TypeID Reservation Date CheckinDate Check Out Date Estimated Price DiscountRate NumberOfAdults NumberOfChildren CUSTOMER 1 Customers First Name Middle Surname StreetAdress City ZIP Phone Number DOB TypeID Description Quantity DailyPrice Gender E-Mail IsMember Preferred-CC-NO RESERVATION_HISTORY Reservation Number CustomerlD RoomType Reservation Date CheckInDate EstimatedCheckOutDate ActualCheckOutDate Room No MinibarConsumption LateFee TotalFee NumberOfChildren NumberOfAdults ROOM 1 RoomNumber TypeID Floor Bed Capacity IsSmooking Room IsAvailable

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!