Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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