Question: [ Relational Data Model ] [ 5 0 ] Consider the following schema defined for Lake Erie Cruises. The schema keeps track of ships, cruises,

[Relational Data Model][50]
Consider the following schema defined for Lake Erie Cruises. The schema keeps
track of ships, cruises, ports and passengers. A cruise refers to the sailing of a ship
on a specific date.
Ship(ship_number, ship_name, ship_builder, departure_date, gross_weight)
Cruise(cruise_number, start_date, end_date, director, ship_number)
Port(port_name, country, dock_number, port_manager)
Visit(cruise_number, port_name, country, arrival_date, departure_date)
Passenger(passenger_number, passenger_name, SSN, Address, Phone)
Voyage(passenger_number, cruise_number, stateroom_number, fare)
The following facts have been validated.
Both ship number and ship name are unique in Ship relation.
A ship goes on many cruises. A cruise is associated with a single ship.
A port can be uniquely identified by a port name and country
A cruise may visit multiple ports, and a port can be included as a stop by
multiple cruises.
A passenger has a unique passenger number, and a unique SSN .
A person has a single passenger number that is used for all cruises she takes.
A voyage indicates that a person can take many cruises. A cruise, as
expected, can have multiple passengers.
Answer the following questions.
(20) Identify a primary key, and a candidate key for each relation.
(10) Identify the foreign keys of each relation, given your choice of primary keys.
(10) Identify the foreign keys that are also a part of the primary keys of the same
schema they are defined on.
[(10) Happy Hour Lines wants to track which passengers visited which ports on
which ships, and on which dates. In this case, which are the relations you will
need? Design schemas as necessary to store this information.
[ Relational Data Model ] [ 5 0 ] Consider the

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!