SlideShare a Scribd company logo
Practice ER Diagram Question – A Sample Solution
Suppose you are given the following requirements for a simple database for the National
Hockey League (NHL):
• the NHL has many teams,
• each team has a name, a city, a coach, a captain, and a set of players,
• each player belongs to only one team,
• each player has a name, a position (such as left wing or goalie), a skill level, and a set
of injury records,
• a team captain is also a player,
• a game is played between two teams (referred to as host_team and guest_team) and
has a date (such as May 11th
, 1999) and a score (such as 4 to 2).
Construct a clean and concise ER diagram for the NHL database using the Chen notation
as in your textbook. List your assumptions and clearly indicate the cardinality mappings
as well as any role indicators in your ER diagram.
Here is one sample solution. Note that other diagrams are possible
depending on assumptions.
date score
game
host guest
team
t-name
city
coach
captain
belongs
to
skill level
player
p-name position
log injury
record
id
description

More Related Content

PPT
Arrays searching-sorting
PPTX
Solving recurrences
PDF
Compiler Design Lecture Notes
PPT
Expression evaluation
PPTX
Evaluation of prefix expression with example
PDF
C Recursion, Pointers, Dynamic memory management
PPTX
Hashing In Data Structure
PPTX
Ppt of operations on one way link list
Arrays searching-sorting
Solving recurrences
Compiler Design Lecture Notes
Expression evaluation
Evaluation of prefix expression with example
C Recursion, Pointers, Dynamic memory management
Hashing In Data Structure
Ppt of operations on one way link list

What's hot (20)

PPTX
Programming in c Arrays
PPTX
Recursion
PPTX
Matlab m files and scripts
PPT
Chap 5 Tree.ppt
PPT
Selection Control Structures
PPTX
Theory of Computation Unit 3
PPT
Introduction to PHP.ppt
PPTX
System Programing Unit 1
PPTX
PPT
Set in discrete mathematics
PPTX
AVL Tree Data Structure
PPT
pseudo code basics
PPTX
Merge sort algorithm
PPTX
Regular Expressions 101 Introduction to Regular Expressions
PPT
Recurrences
PDF
Chapter 2: Relations
PDF
Logic gate
Programming in c Arrays
Recursion
Matlab m files and scripts
Chap 5 Tree.ppt
Selection Control Structures
Theory of Computation Unit 3
Introduction to PHP.ppt
System Programing Unit 1
Set in discrete mathematics
AVL Tree Data Structure
pseudo code basics
Merge sort algorithm
Regular Expressions 101 Introduction to Regular Expressions
Recurrences
Chapter 2: Relations
Logic gate
Ad

Viewers also liked (20)

ODP
ER Model in DBMS
PPTX
Entity Relationship Diagram presentation
PDF
Er diagram practical examples
PPTX
Erd practice exercises
PPTX
How to Draw an Effective ER diagram
PPT
2. Entity Relationship Model in DBMS
PPT
DBMS PPT
PPT
Time manipulation lecture 2
PPT
PHP mysql Er diagram
PPT
Uml Omg Fundamental Certification 2
PPTX
data base management system
PPT
Enhanced E-R diagram
PDF
DBMS topics for BCA
PPTX
Er diagrams presentation
PPT
enhanced er diagram
PPTX
Data model and entity relationship
PPT
UML Case Tools
PPT
Uml - An Overview
PPT
Entity Relationship Diagram
PPT
Uml diagrams
ER Model in DBMS
Entity Relationship Diagram presentation
Er diagram practical examples
Erd practice exercises
How to Draw an Effective ER diagram
2. Entity Relationship Model in DBMS
DBMS PPT
Time manipulation lecture 2
PHP mysql Er diagram
Uml Omg Fundamental Certification 2
data base management system
Enhanced E-R diagram
DBMS topics for BCA
Er diagrams presentation
enhanced er diagram
Data model and entity relationship
UML Case Tools
Uml - An Overview
Entity Relationship Diagram
Uml diagrams
Ad

More from IIUM (20)

PDF
How to use_000webhost
PDF
Chapter 2
PDF
Chapter 1
PDF
Kreydle internship-multimedia
PDF
03phpbldgblock
PDF
Group p1
PDF
Tutorial import n auto pilot blogspot friendly seo
PDF
Visual sceneperception encycloperception-sage-oliva2009
PDF
03 the htm_lforms
PDF
Exercise on algo analysis answer
PDF
Redo midterm
PDF
Heaps
PDF
Report format
PDF
Edpuzzle guidelines
PDF
Final Exam Paper
PDF
Final Exam Paper
PDF
Group assignment 1 s21516
PDF
Avl tree-rotations
PDF
Week12 graph
PDF
Vpn
How to use_000webhost
Chapter 2
Chapter 1
Kreydle internship-multimedia
03phpbldgblock
Group p1
Tutorial import n auto pilot blogspot friendly seo
Visual sceneperception encycloperception-sage-oliva2009
03 the htm_lforms
Exercise on algo analysis answer
Redo midterm
Heaps
Report format
Edpuzzle guidelines
Final Exam Paper
Final Exam Paper
Group assignment 1 s21516
Avl tree-rotations
Week12 graph
Vpn

Recently uploaded (20)

PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Business Ethics Teaching Materials for college
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Complications of Minimal Access Surgery at WLH
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
Pharma ospi slides which help in ospi learning
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
RMMM.pdf make it easy to upload and study
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Insiders guide to clinical Medicine.pdf
PDF
Basic Mud Logging Guide for educational purpose
PDF
01-Introduction-to-Information-Management.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
O7-L3 Supply Chain Operations - ICLT Program
Business Ethics Teaching Materials for college
O5-L3 Freight Transport Ops (International) V1.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Complications of Minimal Access Surgery at WLH
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Abdominal Access Techniques with Prof. Dr. R K Mishra
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Pharma ospi slides which help in ospi learning
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Pre independence Education in Inndia.pdf
RMMM.pdf make it easy to upload and study
Final Presentation General Medicine 03-08-2024.pptx
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Insiders guide to clinical Medicine.pdf
Basic Mud Logging Guide for educational purpose
01-Introduction-to-Information-Management.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?

Chap2 practice key

  • 1. Practice ER Diagram Question – A Sample Solution Suppose you are given the following requirements for a simple database for the National Hockey League (NHL): • the NHL has many teams, • each team has a name, a city, a coach, a captain, and a set of players, • each player belongs to only one team, • each player has a name, a position (such as left wing or goalie), a skill level, and a set of injury records, • a team captain is also a player, • a game is played between two teams (referred to as host_team and guest_team) and has a date (such as May 11th , 1999) and a score (such as 4 to 2). Construct a clean and concise ER diagram for the NHL database using the Chen notation as in your textbook. List your assumptions and clearly indicate the cardinality mappings as well as any role indicators in your ER diagram. Here is one sample solution. Note that other diagrams are possible depending on assumptions. date score game host guest team t-name city coach captain belongs to skill level player p-name position log injury record id description