Hands-On Individual SR-bi-003 – Hotel Database, Part 4 |
Resources: SR-bi-003 – Hotel Database, the results from SR-bi-003 – Hotel Database Part 3, and Oracle® Database Express® Virtual Desktop
Complete the service request byimplementing referential integrity and constraints in your database:
· Create an AFTER trigger on the Hotel table that deletes any records from the Rooms table that match (:old.HOTEL_ID). · Apply at least six constraints within the database. · Create a newly generated DDL script.
Create a fax cover sheet addressed to the project manager for the referential integrity and constraints work you have completed and include a newly generated DDL script to show your progress on the project. |
ROOMS
Room_
Description
PK
Amenity1
Amenity2
Smoking
HOTEL
Hotel_ID PK
Name
Street_Address
City
Zip
Phone
Description
ROOM_PRICE
Room_Type
Room_Price1
Room_Price2
Room_Price3
ROOM_TYPE
Room_ID
Room_Number
Description
Family
Kitchenette
EMPLOYEE
Manager_ID
Manager_Name
Housekeeping_Supervisor
_ID
Housekeeping_Supervisor
Housekeeping_Phone