Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Ex. 2 (15 pts) Consider a database system for a baseball organization. The data requirements are summarized as follows: The personnel involved include players, coaches,

image text in transcribed
Ex. 2 (15 pts) Consider a database system for a baseball organization. The data requirements are summarized as follows: The personnel involved include players, coaches, managers, and umpires. Each is identified by a unique personnel id. They are also described by their first and last names along with the date and place of birth. Players are further described by other attributes such as their batting orientation (left, right, or switch) and have a lifetime batting average (BA). Within the players group is a subset of players called pitchers. Pitchers have a lifetime ERA (earned run average) associated with them. Teams are uniquely identified by their names. Teams are also described by the city in which they are located and the division and league in which they play. Teams have one manager, a number of coaches, and a number of players. It is assumed that each manager cannot manage more than one team and each coach cannot coach for more than one team. Games are played between two teams with one designated as the home team and the other the visiting team on a particular date. The score (runs, hits, and errors) is recorded for each team. The team with the most runs is declared the winner of the game. With each finished game, a winning pitcher and a losing pitcher are recorded. In case there is a save awarded, the save pitcher is also recorded. With each finished game, the number of hits (singles, doubles, triples, and home runs) obtained by each player is also recorded. (7.5 pts) Draw an E/R diagram capturing the above description. (7.5 pts) Translate your E/R diagram into a relational schema using the E/R approach and write the SQL statements for the table creation. Specify primary keys and foreign keys

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

Explain the factors that determine the degree of decentralisation

Answered: 1 week ago

Question

What Is acidity?

Answered: 1 week ago

Question

Explain the principles of delegation

Answered: 1 week ago

Question

State the importance of motivation

Answered: 1 week ago

Question

Discuss the various steps involved in the process of planning

Answered: 1 week ago

Question

Make efficient use of your practice time?

Answered: 1 week ago