Question: Write an SQL for the Schema below and don't forget the primary key and foreign keys, and show what is NOT NULL / UNIQUE ?
Write an SQL for the Schema below and don't forget the primary key and foreign keys, and show what is NOT NULLUNIQUE
Feedback
tablefeedbackidrating,comment,reservationid
Guests
guestid
Reservations
tablereservationidcheckindate,Checkoutdate,guestidBillid
Invoice
billid
Paymentmethod
amount
date
guestid
Rooms
roomnum
roomstatus
floornum
guestid
hotelid
Hotel
tablehotelidhotellocation,hoteladdress
Employees
empid
address
salary
hotelid
Fills
Suite
room roomnum roomstatus floornum CarParkingSpot
SingleRoom
roomid
roomstatus
roomnum
floornum
Deluxe room
tableroomidroomnum,roomstatus,floornum
Receptionist
empid
Maintenance
Admin
SuperemplD
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
