Question: I have database design for hotel managemnet system with the following requirements : 1 . Guest can do many bookings ( 1 to M )
I have database design for hotel managemnet system with the following requirements : Guest can do many bookings to M relationship.
Booking can have many rooms and the room can be booked many time so it is a M to M relationship.
Floor have many rooms to M relationship.
A room has one class but a class can be related to many rooms so it is a to M relationship.
A room class can have many features and the feature can belong to many classes so it is a M to M relationship.
A class of room can have many beds and a bed type can belong to different room classes, so M to M relationship.
A booking can have many addons, and an addon can be related to many bookings so M to M relationship.
A booking can have payment status and the payment status can belong to many bookings so to M relationship.
A room has a room status and the room status can be related to many rooms so to M relationship. the entities and attributes are : GUEST has attributes: idkeyfirstname,lastname,phonenumber,emailaddress
BOOKING has attributes: idkeycheckindate,checkoutdate,numadults,numchildren, bookingamount.
ROOMCLASS has attributes:idkeyclassname,baseprice.
ROOM has attributes: idkeyroomnumber.
FEATURE has attributes: idkeyfeaturename.
FLOOR has attributes: idkeyfloornumber
ADDON has attributes: idkeyaddonname,price.
BEDTYPE has attributes: idkeybedtypename.
PAYMENTSTATUS has attributes: idkeypaymentstatusname.
ROOMSTATUS has attributes: idkeystatusname. The questions is : create a set of complex SQL queries to extract insights and perform tasks as described above.
create a document describing the insights and results obtained from the SQL queries and any recommendations based on the findings
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
