0% found this document useful (0 votes)
47 views1 page

Case #1: Jonesburgh: Business Rules

This document outlines the relationships between entities in a sports league database including teams, players, coaches, cities, and games. It describes the one-to-many and many-to-many relationships between these entities, such as a city having one team, a team having many players, and a game involving two teams with one hosting and the other visiting. Business rules are also listed such as each coach belonging to a single team and a coach potentially serving as an offensive, defensive, or physical trainer.

Uploaded by

Jessica Hunter
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views1 page

Case #1: Jonesburgh: Business Rules

This document outlines the relationships between entities in a sports league database including teams, players, coaches, cities, and games. It describes the one-to-many and many-to-many relationships between these entities, such as a city having one team, a team having many players, and a game involving two teams with one hosting and the other visiting. Business rules are also listed such as each coach belonging to a single team and a coach potentially serving as an offensive, defensive, or physical trainer.

Uploaded by

Jessica Hunter
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Case #1: Jonesburgh

TEAM

PLAYER
PK

PlayerID

FK1

TeamID
Player_L_Name
Player_F_Name
Player_Height
Player_Weight

PK

TeamID
TeamCity
TeamStadium
TeamOwner
CityID
TeamName

has
FK1

has

has

VISITOR_TEAM

d
TEAM_IS_VISTOR

COACH
PK

CoachID

FK1

TeamID
Coach_F_Name
Coach_L_Name

PK,FK1

V_TeamID

FK1

TeamCity
VisitDate
TeamName

FK1

CITY
PK

CityID
visits
CityName
CityPop
CityAirport

TEAM_IS_HOST
GAME

HOST_TEAM
PK,FK1

H_TeamID

FK1

TeamCity
HostDate
TeamName

FK1

O
COACH_IS_PHYS
COACH_IS_OFFENSE

PHYSICAL TRAINER
PK,FK1

CoachID

OFFENSIVE
PK,FK1

CoachID

COACH_IS_DEF
DEFENSE
PK,FK1

CoachID

PK,FK1
PK,FK2

V_TeamID
H_TeamID

hosts
HostScore
VisitorScore
Winner

Business Rules
A city has one team.
A team belongs to one city.
A team has many players.
A player belongs to one team.
A team can play many games.
Each game can be played by two teams.
Each game has one visitor, and one host.
A team can visit many games.
A team can host many games.
A team can have many coaches.
Each coach belongs to one team.
A coach may be an offensive, defensive, physical trainer
or all.

You might also like