A database is being constructed to keep track of the teams and games of a sports league. A team has a number of players, not all of whom participate in each game. It is desired to keep track of the players participating in each game for each team, the positions they played in that game, and the result of the game. Try to design an ER schema diagram for this application, stating any assumptions you make. Choose your favorite sport (soccer, football, baseball ...).

What will be an ideal response?


The following design may be used for a baseball league. Here, we assumed that each game in the schedule is identified by a unique Game#, and a game is also identified uniquely by the combination of Date, starting Time, and Field where it is played. The Performance attribute of PARTICIPATE is used to store information on the individual performance of each player in a game. This attribute can be designed to keep the information needed for statistics, and may be quite complex. One possible design for the Performance attribute may be the following (using the notation of Figure 7.8):



Performance( {Hitting(AtBat#, Inning#, HitType, Runs, RunsBattedIn, StolenBases)},

{Pitching(Inning#, Hits, Runs, EarnedRuns, StrikeOuts, Walks, Outs,

Balks, WildPitches)},

{Defense(Inning#, {FieldingRecord(Position, PutOuts, Assists, Errors)})} )

Here, performance is a composite attribute made up of three multivalued components:

Hitting, Pitching, and Defense. Hitting has a value for each AtBat of a player, and records the HitType (suitable coded; for example, 1 for single, 2 for double, 3 for triple, 4 for home run, 0 for walk, -1 for strikeout, -2 for fly

Computer Science & Information Technology

You might also like to view...

What is the output of the following function call, given the function definition below?

cout << repeater (3, 7); // function call repeater (int a, int b) // function definition { int num = 2; for (int c = a, c < b, c++) num += c; return num; } a) 2 b) 10 c) 14 d) 20

Computer Science & Information Technology

Answer the following questions true (T) or false (F)

1. True/False: If X = 2, the assignment statement Set Y = X + 4 will put the value of 6 into both X and Y. 2. True/False: The expression 43 % 1 = 0 is correct. 3. True/False: Computers perform all arithmetic operations in order, from left to right.

Computer Science & Information Technology

The default implementation of method clone of Object performs a ________.

a. empty copy. b. deep copy. c. full copy. d. shallow copy.

Computer Science & Information Technology

The bill of materials (BOM) serves as a recipe of ingredients needed to make each item an organization manufactures.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology