Question: Now create the Room, Booking, and Guest tables using the integrity enhancement features of SQL with the following constraints: (a) Type must be one of
(a) Type must be one of Single, Double, or Family.
(b) Price must be between £10 and £100.
(c) roomNo must be between 1 and 100.
(d) dateFrom and dateTo must be greater than today’s date.
(e) The same room cannot be double booked.
(f) The same guest cannot have overlapping bookings.
Step by Step Solution
3.45 Rating (171 Votes )
There are 3 Steps involved in it
CREATE DOMAIN RoomType AS CHAR 1 CHECKVALUE IN S F D CREATE DOMAIN HotelNumbers AS HotelNumber CHECK... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
672-CS-DB (1278).docx
120 KBs Word File
