I just need someone to draw the diagram for me. Need to draw the diagram like the pic provided? 1. The following are the requirements gathered about the Passenger Cruise Terminal System: 1. A Passenger can go on 1 or many cruises. A cruise can take 1 or many passengers. Passengers book tickets to go on cruise. 2. A Ship can go on 1 or many Cruises. A cruise can sail with only atmost 1 ship. 3. A cruise can go to 1 or many ports. A port can be visited by 1 or more cruises. A cruise will have a schedule for visiting ports. Draw a complete Entity-Relationship-Diagram for the above requirements. Resolve all Many-Many relationships using associative entity. Answer: Entities and Attributes: Passenger Attributes: Passenger ID (PK), Name, Contact Info, etc. Cruise Attributes: Cruise ID (PK), Cruise Name, Duration, etc. Ticket Attributes: Ticket ID (PK), Passenger ID (FK), Cruise ID (FK), Price, Booking Date, etc. Ship Attributes: Ship ID (PK), Ship Name, Capacity, etc. Port Attributes: Port ID (PK), Port Name, Location, etc. Schedule Attributes: Schedule ID (PK), Cruise ID (FK), Port ID (FK), Arrival Time, Departure Time, etc. Relationships: Books: One-to-Many relationship from Passenger to Ticket. (Indirectly resolves Many-to-Many between Passenger and Cruise as each ticket will be for a specific cruise). Sails On: One-to-Many relationship from Ship to Cruise. A ship can go on many cruises, but each cruise sails with at most one ship. Visits: Many-to-Many relationship between Cruise and Port. This is resolved using an associative entity, which is the Schedule. Associative Entities (to resolve Many-to-Many relationships): Schedule: Serves as the associative entity between Cruise and Port. This resolves the Many-to-Many relationship by breaking it down into two One-to-Many relationships: One-to-Many from Cruise to Schedule. One-to-Many from Port to Schedule. ERD Representation: Passenger entity is connected to the Ticket entity via a one-to-many relationship, as a passenger can book many tickets. Ticket is an associative entity that connects Passenger and Cruise and includes additional attributes like price and booking date. Cruise is connected to the Ship entity with a one-to-many relationship, as a ship can go on many cruises, but each cruise is associated with only one ship. Cruise and Port are connected through the Schedule associative entity. The Schedule contains information on arrival and departure times for a cruise at a specific port. The Schedule entity has a composite primary key that includes Cruise ID and Port ID, representing each unique visit of a cruise to a port. By following these guidelines, you can draw a complete ERD for the Passenger Cruise Terminal System that meets all the specified requirements.
I just need someone to draw the diagram for me. Need to draw the diagram like the pic provided?
1. The following are the requirements gathered about the Passenger Cruise Terminal System:
1. A Passenger can go on 1 or many cruises. A cruise can take 1 or many passengers.
Passengers book tickets to go on cruise.
2. A Ship can go on 1 or many Cruises. A cruise can sail with only atmost 1 ship.
3. A cruise can go to 1 or many ports. A port can be visited by 1 or more cruises. A
cruise will have a schedule for visiting ports.
Draw a complete Entity-Relationship-Diagram for the above requirements. Resolve all
Many-Many relationships using associative entity.
Answer:
Entities and Attributes:
-
Passenger
- Attributes: Passenger ID (PK), Name, Contact Info, etc.
-
Cruise
- Attributes: Cruise ID (PK), Cruise Name, Duration, etc.
-
Ticket
- Attributes: Ticket ID (PK), Passenger ID (FK), Cruise ID (FK), Price, Booking Date, etc.
-
Ship
- Attributes: Ship ID (PK), Ship Name, Capacity, etc.
-
Port
- Attributes: Port ID (PK), Port Name, Location, etc.
-
Schedule
- Attributes: Schedule ID (PK), Cruise ID (FK), Port ID (FK), Arrival Time, Departure Time, etc.
Relationships:
-
Books: One-to-Many relationship from Passenger to Ticket. (Indirectly resolves Many-to-Many between Passenger and Cruise as each ticket will be for a specific cruise).
-
Sails On: One-to-Many relationship from Ship to Cruise. A ship can go on many cruises, but each cruise sails with at most one ship.
-
Visits: Many-to-Many relationship between Cruise and Port. This is resolved using an associative entity, which is the Schedule.
Associative Entities (to resolve Many-to-Many relationships):
- Schedule: Serves as the associative entity between Cruise and Port. This resolves the Many-to-Many relationship by breaking it down into two One-to-Many relationships:
- One-to-Many from Cruise to Schedule.
- One-to-Many from Port to Schedule.
ERD Representation:
-
Passenger entity is connected to the Ticket entity via a one-to-many relationship, as a passenger can book many tickets.
-
Ticket is an associative entity that connects Passenger and Cruise and includes additional attributes like price and booking date.
-
Cruise is connected to the Ship entity with a one-to-many relationship, as a ship can go on many cruises, but each cruise is associated with only one ship.
-
Cruise and Port are connected through the Schedule associative entity. The Schedule contains information on arrival and departure times for a cruise at a specific port.
-
The Schedule entity has a composite primary key that includes Cruise ID and Port ID, representing each unique visit of a cruise to a port.
By following these guidelines, you can draw a complete ERD for the Passenger Cruise Terminal System that meets all the specified requirements.
-
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images