The NCAA Solution
The NCAA Solution
The NCAA Solution
3. COACH: NCAA_id_number,name, title (e.g., head coach, assistant coach), salary, address, telephone
number.
4. GAME: Location, year (partial key), final score, attendance
5. REFEREE: NCAA_id ,name, salary, years of experience, address, telephone number, certifications
(multi-valued)
6. PLAYER: Stu# , name, major GPA.
7. CAMP: location, number of courts., Size, Site
Relationships & Structural Constraints
Participates: between TEAM (0,1) & CONFERENCE -(5,n)
Belongs_to: between TEAM (13,20) & PLAYER(1,1)
Coaches:between TEAM (3,7) & COACH (1,1) \
Calls: Between REREREE(0,n) & GAME(3,3)
Plays_in:Between PLAYER(0,m) & GAME(10,n)
Time played, points scored, rebounds, assists, minutes played, and fouls
Counsels: between PLAYER(0,m) & CAMP(3,n)
Plays:between GAME(1,1)& TEAM.hosts(1,n) & TEAM.guest (0,m) (Exclusive Arc across Teams to
address address team cant play itself)
22. (19) Add Deletion constraints and develop a design-specific ER diagram for the NCAA database in
Exercise 21, by decomposing constructs that cannot directly be mapped to a logical schema: multivalued attributes and binary relationships of cardinality ratio n:m relationship.
When a referee retires, all links to the games handled by that referee should be removed. Likewise, if a game
is cancelled, all links to the referees for that game should be dropped. Although it is does not happen often, a
university may sometimes leave the conference of which it is a member. Naturally, we want to keep the team
in the database since the university could decide to join another conference at a later date. However, if a team
(university) leaves the NCAA altogether, all players and coaches of that team should be removed from the
database along with the team. In all other relationships that exist in the database, the default value of
Restriction of Deletion should be explicitly indicated
Deletion:
1. When a referee retires, all links to the games handled by that referee should be removed.2. When a game is cancelled, all links to the referees for that game should be dropped
3. A university may sometimes leave the conference of which it is a member. Naturally, we want to keep
the team in the database since the university could decide to join another conference at a later date.
4. However, if a team (university) leaves the NCAA altogether, all players and coaches of that team should
be removed from the database along with the team.
5. In all other relationships that exist in the database, the default value of Restriction of Deletion should
be explicitly indicated.
1. Transform multi-valued attributes REFEREE.Certificaitons to a single-valued attribute
Note: Restrict contraint is the default when no deltion constraint is specified. R conflict with other deletion
constraints specified. C are suggested reslolution.