Question: Based on the Entities, Attributes and business rules create an ERD with the appropriate cardinalities Entities and Attributes Team TeamID Unique Integer, not null Represents
Based on the Entities, Attributes and business rules create an ERD with the appropriate cardinalities
Entities and Attributes
- Team
- TeamID
- Unique Integer, not null
- Represents unique ID for teams and is the Primary Key
- TeamName
- Text
- Represents the name of the team with a specific Primary Key
- League
- Text
- Represents the League team is in with a specific Primary Key
- StadiumName
- Text
- Represents the name of the stadium of a team with a specific Primary Key
- StadiumCapacity
- Must be a positive integer
- Represents the number of people the stadium of a team can hold with a specific Primary Key
- Players
- PlayerID
- Unique Integer, not null
- Primary Key, and the unique ID given to a specific Player
- PlayerName
- Text
- Name of a player with a specific Primary Key
- Position (forward, midfielder, defender, goalkeeper)
- Must be a valid position ( Forward, Midfielder, Defender, or GoalKeeper)
- SuperType that represents a certain position of a player with a specific Primary Key
- PreferredFoot (Left, Right)
- Must be a valid selection: Left or Right
- SuperType of the footedness of a player with a specific Primary Key
- Height
- Must be a positive integer
- Height of a player with a specific Primary Key
- Weight
- Must be a positive integer
- Weight of a player with a specific Primary Key
- Coach
- CoachID
- Unique Integer
- Unique ID of a specific coach
- CoachName
- Text
- Name of a coach with a specific Primary Key
- ContractYearsLeft
- Must be a positive integer and greater than zero
- Years of a contract left of a coach with a specific Primary Key
- HireDate
- Must be a valid date
- Date a coach with a specific Primary Key was hired
- CoachingWins
- Positive Integer
- Wins accumulated by a coach with a specific Primary Key
- CoachingLosses
- Positive Integer
- Matches
- MatchID
- Unique Integer, not null
- Unique ID of a specific match
- Date
- Must be a valid date
- Date of a match with a specific Primary Key
- Location
- Text
- Location of a match with a specific Primary Key
- Opponent
- Text
- Name of the opponent played against in the match with a specific Primary Key
- HomeTeamGoals
- Must have a positive integer, must be greater than or equal to zero, cannot be null
- Number of goals the home team has scored in a match with a specific Primary Key
- AwayTeamGoals
- Must have a positive integer, must be greater than or equal to zero, cannot be null
- Number of goals an away team has scored in a match with a specific Primary Key
- Staff
- StaffID
- Unique Integer, not null
- Unique ID of specific staff members
- Name
- Text
- Name of a staff member with a specific Primary Key
- Role (AssistantCoach, FitnessTrainer, Scout)
- Must be a valid role: AssistantCoach, FitnessTrainer, Scout
- SuperType that represents the role of a staff member with a specific Primary Key.
- DateHired
- Must be a valid date
- Date a staff member with a specific Primary key was hired
- Salary
- Positive Integer
- Salary of a staff member with a specific Primary Key
- Sponsors
- CompanyID
- Unique Integer, not null
- Unique ID of the company sponsoring the team
- CompanyName
- Text
- Name of the company sponsoring with a unique Primary Key
- Industry
- Text
- The industry of the company sponsoring with a unique Primary Key
- SponsorshipAmount
- Positive Integer
- Amount of money a company with a unique Primary Key is sponsoring with
- SponsorshipYearsLeft
- Positive Integer, Must be greater than 0
- Amount of years left for a company with a unique Primary Key has agreed to sponsor
- AssetsSponsored (stadium, jersey, training ground)
- Must be valid selection: Stadium, Jersey, Training Ground
- SuperType of the specific asset a company with a unique Primary Key is sponsoring
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
