Question: Now create the Room, Booking, and Guest tables using the integrity enhancement features of SQL with the following constraints: ( a ) type must be

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 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 todays date.
(e) The same room cannot be double-booked.
(f) The same guest cannot have overlapping bookings.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!