Question

In: Computer Science

a) Design an E-R diagram for keeping track of the scoring statistics of your favorite sports...

a)

Design an E-R diagram for keeping track of the scoring statistics of your favorite sports team.

You should store the matches played, the scores in each match, the players in each match, and individual player scoring statistics for each match.

Summary statistics should be modeled as derived attributes with an explanation as to how they are computed.

b)

Construct appropriate relation schemas for the E-R diagram (ex. customer(name, ID, birth))

Solutions

Expert Solution

Question a)

Answer: The E-R diagram would keep track of the scoring statistics of my favorite sports team. Details about the match played, scores in each match, the players in each mathc and individual score of the players. Now, score is related to both the player and the match. Thus, attribute score should be used along with the relation so that it can be used both for the match and player.

There should be two tables in this scenario. One is Match , which stores the details of the match and the other is Player, stores the details of the player.

The required ER-Diagram is given below:

Here, Season_score attribute of Player table is derived attibute. It is derived depending on the date of the match. For example, let each month corresponds to a new season. Thus after every month, the Season_score attribute will be refreshed automatically for each players. So this is a derived attribute.

In Match table, Match_id is unique for each match, which is the primary key of Match table. Other details like Stadium, where the match is played, date of the match, opponent and score details are also there. On the other hand Player table stores the name of each player and Player_id, in case two players having the same name. Also the age and derived attribute is there. Lastly, score of each players is shared with each match, thus Score attribute is used in the relation "Played".

Question b)

Answer: The relational schema for the above ER-Diagram is given below:

Match (Match_id, Stadium, Opponent, Own_score, Opp_score, Date, Score)
Player (Player_id, Name, Age, Season_score, Score)


Related Solutions

Assignment 7: Congressional Vote Tracking Database Description Design an Extended E-R schema diagram for keeping track...
Assignment 7: Congressional Vote Tracking Database Description Design an Extended E-R schema diagram for keeping track of information about votes taken in the U.S. House of Representatives and Senate during the current two-year congressional session.  The database needs to keep track of each U.S. STATE's Name (e.g. Texas, New York, Pennsylvania, etc.) and include the Region of the state (whose domain is {North-east, Midwest, Southeast, West}).  Each CONGRESSPERSON in the House of Representatives is described by his or her Name, plus the...
1a. Construct (draw) an E-R diagram representing the conceptual design of the database. Be sure to...
1a. Construct (draw) an E-R diagram representing the conceptual design of the database. Be sure to identify primary keys, relationship cardinalities, etc. State any assumptions you make. 1b. Convert your E-R diagram to the relational schema. Identify the primary keys of ever relation. Consider the following application: An electronics vendor operates both a Web site and a chain of many physical stores. Examples include Best Buy and Circuit City. To find out more about this application, think about any experiences...
You have been requested to design a schema (as an E/R diagram) for the contact-tracing database....
You have been requested to design a schema (as an E/R diagram) for the contact-tracing database. Your group is busy working to design and field a contact-tracing database to be able to trace rapidly people who may have been in close proximity (contact) to someone diagnosed with a highly infectious disease. The Contact Tracing Domain To be able to trace with whom a person has been in contact, we need to know where that person has been and when. We...
Design a database through the EER diagram to keep track of the teams and games of...
Design a database through the EER diagram to keep track of the teams and games of a sport league. Assume that the following requirements are collected (the English description of cardinal ration and partial/complete participate is NOT required, but you still need to provide the total/partial and cardino ration in your EER diagram) : The database has a collection of TEAM. Each Team has a unique name, players, and owner. The database also keeps the records of PLAYERS. Each player...
Create an E/R diagram for the following business situation and convert the diagram into a set...
Create an E/R diagram for the following business situation and convert the diagram into a set of related tables: A health insurance company sells a number of insurance policies. Employer companies can buy any number of policies including zero and up to 4. A policy must be bought by at least one employer. Employees working for the employers can select at most one insurance policy. A policy can be selected by any number of employees including zero. Employees can add...
Construct an E-R diagram for a hospital with a set of patients and a set of...
Construct an E-R diagram for a hospital with a set of patients and a set of medical doctors. Associate with each patient a log of the various tests and examinations conducted. Use your best judgement to identify the attributes for each of those entities.
a) Construct an E-R diagram for a hospital with a set of patients and a set...
a) Construct an E-R diagram for a hospital with a set of patients and a set of medical doctors. Associate with each patient a log of the various tests and examinations conducted. b) Construct appropriate relation schemas for the E-R diagram. (ex. customer(name, birth, ID...))
In a e-sports racing tournament, the time playerispent (Ti, in seconds) oncompleting a certain track depends...
In a e-sports racing tournament, the time playerispent (Ti, in seconds) oncompleting a certain track depends on two variables: the skill of playeri(Si), on a scale of0 to 10; and the quality of keyboard (Q), on a scale of 0 to 100. The relation among thevariables is given byTi= 300−5Si−2QFurther, suppose that the keyboards provided by the tournament are homogeneous and ofqualityQ= 100, and that the skills of all players in this tournament are approximatelynormally distributedwith mean 9, and standard...
In this assignment you will create a web page about your favorite sports to play or...
In this assignment you will create a web page about your favorite sports to play or teams to watch. If you don’t watch or play sports, please make up your favorite sports to play or teams to watch. You will be incorporating images into your web page, as well as other concepts learned in this unit. Create an external style sheet using a text editor of your choosing. In the CSS file add the following style rules: A background image...
For your written assignment: Construct an E-R diagram for a car-insurance company whose customers own one...
For your written assignment: Construct an E-R diagram for a car-insurance company whose customers own one or more cars each. Each car has associated with it zero to any number of recorded accidents.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT