2 DataModeling RelationalModeling 2012
2 DataModeling RelationalModeling 2012
Part 1: E-R Modeling (Courtesy of Dr. Donna Driscoll) (5 points each, 10 points subtotal)
1. Create a database design for a Little League baseball program. The database must contain the
roster of all players and coaches by team. The database must enable the sports manager to track
the won/lost records for each team. The following business rules are in effect:
a. Each team fields at least twelve players. Each player plays for only one team.
b. Each team has at least one sponsor. Each sponsor may sponsor more than one team.
c. Each team has at least three coaches. Each coach can only coach one team.
d. A city or town can have more than one team. Each team is associated with only one city or
town.
e. Each of the teams plays each of the other team at least twice: at least once as the home
team and at least once as the visiting team. (Hint: Note the recursive relationship here –
TEAM plays TEAM in a GAME)
2. Temporary Employment Corporation (TEC) places temporary workers in companies during peak
periods. TEC's manager gives you the following description of the business:
h. TEC uses special codes to describe a candidate's qualifications for an opening. The list of
codes includes:
Code Description
SEC-45 Secretarial work, at least 45 words per minute
SEC-60 Secretarial work, at least 60 words per minute
CLERK General clerking work
PRG-VB Programmer, Visual Basic
PRG-C++ Programmer, C++
DBA-OR Database Administrator, ORACLE
DBA-DB2 Database Administrator, DB2
SYS-1 Systems Analyst, level 1
SYS-2 Systems Analyst, level 2
NW-NOV Network administrator, Novell experience
COMPANY
OPENING
QUALIFICATION
CANDIDATE
JOB_HISTORY
PLACEMENT
Chapter 3, PP. 144-145, 12 & 13 (these two are indeed one problem in two steps)
You can choose to express your final solutions for Problem 13 if you are sure your solution is correct.
1. Transform the ER model in Chapter 2, problem 15b (The one with CHEMIST, PROJECT, and
EQUIPMENT, P. 104) into relations; presenting in BOTH short text statement and graphical
representations.
Short text statement: Ref. PP. 158-159, and Slide #10-11, Chap4-Part 1;
Graphical representations: Ref. P. 163 and Slide #12&16 Chap4-Part 1.
2. Perform the above work, for problem #18 of Chapter 4 on P. 199. Ignore for now the last part
regarding normalization (the last sentence).