191k views
4 votes
Create an ER Diagram model of the scenario below:

A football team has a least 11 players and may have to
40 players. Each team is uniquely identified by a team ID number.
The team also has a team name coach name and team. Each player is identified by a player ID number. For each player, we need to capture his or her name, address, gender and height. Each player may or may not score one or more goals. They need to store the time and the player ID number of the player who score the goals. Each game may have zero or more goals. Mr Jay is a refree and he can be assigned to many games. Each team is owned by one manager. Mr Bernard is a fan of many teams and the same teams can have many fans. Each team is allocated to one stadium or it can be allocated to many stadiums. Teams are allocated to changing rooms and the same rooms can be allocated to many teams.
you have to do ER Diagram Model which Data model

1 Answer

2 votes

Final answer:

An ER Diagram should include entities, attributes, relationships, and their cardinalities. For the scenario described, the entities would be Player, Team, Game, Goal, Manager, Referee, Fan, Stadium, and Changing Room, and their relationships must be defined with appropriate cardinalities.

Step-by-step explanation:

To create an ER Diagram for the described scenario, you would follow these steps:

  1. Identify all the entities described: Player, Team, Game, Goal, Manager, Referee, Fan, Stadium, Changing Room.
  2. Identify their attributes: Team(Team ID, Team Name, Coach Name), Player(Player ID, Name, Address, Gender, Height), Goal(Time, Player ID), etc.
  3. Identify relationships among entities, such as: Player PLAYS_FOR Team, Team OWNED_BY Manager, Referee ASSIGNED_TO Game, Fan SUPPORTS Team, Team ALLOCATED_TO Stadium, Team USES Changing Room.
  4. Define the cardinalities of these relationships: A team HAS 11 to 40 Players, A Player MAY_SCORE zero or more Goals, A Game MAY_HAVE zero or more Goals, A Referee CAN_BE_ASSIGNED to many games, A Manager OWNS exactly one team, A Fan SUPPORTS one or many teams, A Team ALLOCATED_TO one or many stadiums, Changing Rooms ALLOCATED_TO many teams.

It's important to represent cardinality accurately, such as Team to Player being a one-to-many relation since each team has multiple players but each player is only on one team.

User Christian Bangert
by
7.7k points