Answered step by step
Verified Expert Solution
Link Copied!

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? image text in transcribed

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

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

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

How is the NDAA used to shape defense policies indirectly?

Answered: 1 week ago