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 and
c roomNo must be between and
d dateFrom and dateTo must be greater than todays date.
e The same room cannot be doublebooked.
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
