Case #1 PDF

2
 COACH PK CoachID FK1 TeamID  Coach_F_Name  Coach_L_Name TEAM PK TeamID  TeamCity  TeamStadium  TeamOwner FK 1 Ci ty ID  TeamName PLAYER PK Pla ye rID FK1 TeamID  Player_L_Name  Player_F_Name  Player_Height  Player_Weight  GAME PK,FK1 V_T eamID PK,FK2 H_T eamID  HostScore  VisitorScore  Winner  HOST_TEAM PK,FK 1 H_T eamID FK1 TeamCity  HostDate FK1 TeamName VISITOR_TEAM PK,FK1 V_TeamID FK1 TeamCity  VisitDate FK1 TeamName  has has hosts visits Case #1: Jonesburgh d OFFENSIVE PK,FK 1 Coa chID DEFENSE PK,FK1 Coa chI D PHYSICAL TRAINER PK,FK 1 Coa chI D COACH_IS_PHYS COACH_IS_OFFENSE COACH_IS_DEF  O TEAM_IS_VISTOR TEAM_IS_HOST 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. CITY PK Ci ty ID  CityName  CityPop  CityAirport  has

description

ERD from Group D

Transcript of Case #1 PDF

  • COACH

    PK CoachID

    FK1 TeamID Coach_F_Name Coach_L_Name

    TEAM

    PK TeamID

    TeamCity TeamStadium TeamOwnerFK1 CityID TeamName

    PLAYER

    PK PlayerID

    FK1 TeamID Player_L_Name Player_F_Name Player_Height Player_Weight

    GAME

    PK,FK1 V_TeamIDPK,FK2 H_TeamID

    HostScore VisitorScore Winner

    HOST_TEAM

    PK,FK1 H_TeamID

    FK1 TeamCity HostDateFK1 TeamName

    VISITOR_TEAM

    PK,FK1 V_TeamID

    FK1 TeamCity VisitDateFK1 TeamName

    has

    has

    hosts

    visits

    Case #1: Jonesburgh

    d

    OFFENSIVE

    PK,FK1 CoachID

    DEFENSE

    PK,FK1 CoachID

    PHYSICAL TRAINER

    PK,FK1 CoachID

    COACH_IS_PHYS

    COACH_IS_OFFENSE

    COACH_IS_DEF

    O

    TEAM_IS_VISTOR

    TEAM_IS_HOST

    Business RulesA 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.

    CITY

    PK CityID

    CityName CityPop CityAirport

    has

    Lab3 [Case_1] Elliot - FINAL_UPDATE.vsdPage-1