Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
1)Find the most preferable room type based on past reservations?
2)What is the total revenue for the last month?
AVAILABILITY PREFERENCES RESERVATION 1 TypeID 1 PREFERENCES 1 CID Date NumberOfAvailableRooms ROOM TYPE Reservation Number Reservation CancellationDate CustomerlD TypeID Reservation Date CheckinDate CheckOutDate Estimated Price DiscountRate NumberOfAdults NumberOfChildren CUSTOMER 1 CustomerID FirstName Middle Surname StreetAdress City ZIP Phone Number DOB TypeID Description Quantity DailyPrice Gender E-Mail IsMember Preferred-CC-NO RESERVATION_HISTORY Reservation Number Customerid RoomType Reservation Date CheckInDate EstimatedCheckOutDate ActualCheck OutDate Room No MinibarConsumption LateFee TotalFee NumberOfChildren NumberOfAdults ROOM 1 RoomNumber TypeID Floor BedCapacity IsSmooking Room IsAvailable
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started