Consider the following relational database schema used to keep track of Ship cruise details and passenger reservation details: Ships (Ship_ID, Ship_Name, Manufacturer) Cruises (Cruise_ID, Ship_ID, Start_date, End_date ) Rooms (Room_ID, Cruise_ID, Room_Name, Type) Passenger_Reservation(Reservation_ID,Cruise_ID,Passenger_ID, Room_ID) Passenger (Passenger_ID, SSN, Name, Phone, Address, Gender) Ports (Port_Name, Port_ID, Port_City) Cruise_stay_at_Ports(Cruise_ID, Port_ID) a) Identify domain for each column. b) Identify the primary key and candidate keys in each table. c) Identify the foreign keys and referential integrity constraints. d) Give two example of key, entity integrity, and referential integrity constraints?
Consider the following relational
Ships (Ship_ID, Ship_Name, Manufacturer)
Cruises (Cruise_ID, Ship_ID, Start_date, End_date )
Rooms (Room_ID, Cruise_ID, Room_Name, Type)
Passenger_Reservation(Reservation_ID,Cruise_ID,Passenger_ID, Room_ID)
Passenger (Passenger_ID, SSN, Name, Phone, Address, Gender)
Ports (Port_Name, Port_ID, Port_City)
Cruise_stay_at_Ports(Cruise_ID, Port_ID)
a) Identify domain for each column.
b) Identify the primary key and candidate keys in each table.
c) Identify the foreign keys and referential integrity constraints.
d) Give two example of key, entity integrity, and referential integrity constraints?
Trending now
This is a popular solution!
Step by step
Solved in 6 steps