Construct a relational schema for the er-diagram

Assignment Help Database Management System
Reference no: EM13330822

Question 1.

Consider that a journalist wants to create a simple database for covering the 2010 Tour de France cycling race. The race consists of a number of stages identified by a starting and destination city. Each stage is completed on a single date, and goes over a specific number of kilometers. Riders (first name, last name, and date of birth, which together are unique) are employed by a team which is identified by a name and is managed by the team boss. The team boss is not a rider and is identified by his/her name. A team needs to have at least one rider to enroll in the race. Each rider must belong to one and only one team in the race. No two teams are allowed to have the same boss. A team also assigns one specific rider who acts as the team leader in the race. Riders participate in a number of stages (not necessarily all, as they could give up after a number of days) and it is possible that a rider is absent from all stages.

For each stage that a rider participates in, his total time spent from start to finish is recorded. Stages are either Mountain, Flat, or Team Time Trial stages. There are no other kinds of stages. For mountain stages the database keeps track of the grade (= dificulty level), the number of mountains in it, and the best climber (a rider). For a fiat stage we record the number of intermediate sprints. For a team time trial we record which team won the stage.

(a) Draw an Entity-Relationship diagram for this database using UML notation. Be sure to include all the entities mentioned above, together with attributes (including primary key attributes), relationships and multiplicity constraints. Note that generalization/specification will be involved in the ER diagram.

(b) Construct a relational schema for the ER-diagram. Make sure that you correctly translate Specialization and Many-to-Many relationships. Please follow carefully the following guidelines when you finish this question:

 Please ONLY include the following entities in the ER diagram: Team, Rider, Stage, Boss, Mountain, Flat and TeamTimeTrial. The last three
entities correspond to the three stage types. It is possible that there are more than one relationship between two entities in the diagram;
 Please only use the attributes given in the instruction. Please do not make up any other attributes yourself or use other names for the attributes;  Please only use the drawing tools (e.g., Microsoft Word or Visio) that are available for drawing up the ER diagram. It is not allowed to use those tools for automatic generation of ER diagrams; Always highlight the primary keys for the entities created in the ER dia-
gram and the relations transformed from the ER diagram.

Question 2.

Consider the following relation schema for table R:

R(ENo;DNo;PNo;EName;DName;PName;Edob;Dmanager;PCity;PCountry; hours; rate) Attributes starting with "E" refer to Employees, those starting with "D" refer to Departments, and those with "P" to Projects. Employees, Departments, and Projects are identified by unique numbers. Each department has only one manager, but an employee can be managers for difierent departments. The number of hours and hourly rate of pay for a stafi to carry out a project are determined by the stafi and the project. There may be multiple projects that
are conducted in a department and multiple departments can be involved in a single project as well. Any employee can be afiliated with and work for any departments in any projects at the same time. Names are not generally unique; however, cities are uniquely named within and across all countries.

Answer the following questions:

(a) Identify the Functional Dependencies in R. Be sure to maximize the number of attributes on the right hand side (RHS) and minimize the number of attributes on the left hand side (LHS) of each FD. You should exclude any trivial FDs in your answer.

(b) Identify the Super Key of R based on the Functional Dependencies. You need to use the concept of attribute closure to identify the key. Intermediate steps in this process should be summarized.

(c) Assume that R is in 1NF. Now normalize the relation to 2NF, 3NF, and BCNF. Be sure to indicate the FDs you are removing at each step, and why. Just giving the decompositions in each of the three Normal Forms is not suficient.

While it is recommended to answer this question on just one page, you should use no more than two pages for this question.

Reference no: EM13330822

Questions Cloud

Compute the maximum speed of the glider : A 0.520kg glider on an air track is attached to the end of an ideal spring with force constant 453N/m; it undergoes simple harmonic motion with an amplitude of 4.10×10?2m. Compute the maximum speed of the glider
Determine the cost equations for factory overhead : Determine the cost equations for factory overhead, advertising expense, salary & commissions, bad debt expense, sales discount, and purchasing expense by using a simple or multiple regression model and the data presented in appendices C &D.
Calculate the mass of the disk : A uniform disk of radius 0.471 m and unknown mass is constrained to rotate about a perpendicular axis through its center. Find the mass of the disk
How far away from the ship is the satellite : A 92.0-kg astronaut and a 1200-kg satellite are separated from the space ship, and are both at rest with respect to the ship without any method of getting to the ship. how far away from the ship is the satellite
Construct a relational schema for the er-diagram : Construct a relational schema for the ER-diagram. Make sure that you correctly translate Specialization and Many-to-Many relationships. Please follow carefully the following guidelines when you ?nish this question.
What is the speed at the bottom of the hill : A sled slides without friction down a small, ice-covered hill. If the sled starts from rest at the top of the hill, its speed at the bottom is 7.50 m/s. What is the speed at the bottom of the hill
Varios steps in designing a training programme : What are the factors that should be taken into consideration while designing an effective training programme? Mention the varios steps in designing a training programme?
What is the pitcher''s power output during the pitch : What is the pitcher's power output during the pitch and How much work does the pitcher do on the ball
What is career planning : What is career planning? How is an individual's career planned and developed in an organisation?

Reviews

Write a Review

Database Management System Questions & Answers

  When would creating an index reduce overall database perform

Indexing can affect the performance of a general-purpose database that has roughly equal numbers of fetches and changes. The decision to add an index can improve the performance of a system but can also degrade it.

  Design an er diagram to capture the given requirements

Design an ER diagram to capture the requirements. State any assumptions you have that affects your design and three-level schema architecture for the Gyan Gurukul Company that provide better security also design a data abstraction for his client ka..

  Explain the security mechanisms available for a database

Use technology and information resources to research issues in database systems. Write clearly and concisely about relational database management systems using proper writing mechanics and technical style conventions.

  Describe object-orientated databases

"Object-Orientated Databases will eventually supplant Relational Databases and RDBMSs as the predominant data storage / retrieval paradigm.

  List all the functional dependencies present in the relation

You must implement the entity relationship model provided in the model solution to Assignment 1. The model solution will be released on the course website approximately TWO (2) weeks after the Assignment 1 due date.

  Use the prime_minister database

Use the prime_minister database (prime_minister.sql) from the Interact Resources site. Answer the following queries from that database.

  Design a case for other student to investigate

You need to design a CASE for other student to investigate. As an example; at the end of this week you should generate the following materials: A case description.

  Which method would be efficient for planning proactive

Dual Assessment of Data Quality in Customer Databases,Journal of Data and Information Quality (JDIQ), Volume 1 Issue 3, December 2009, Adir Even, G. Shankaranarayanan.

  Create a class diagram of the intial code

The base application consists of three classes - Doctor, Patient and Hospital. A patient can be a private or public patient and is handled differently in either case. Patients are assigned to Doctors according to availability and preference.

  Identify each relationship type and write all of the busines

Identify each relationship type and write all of the business rules and create the bask Crow's Foot ERD for DealCo.

  Write a script that calculates the common factors

Write a script that calculates the common factors between 10 and 20. To find a common factor, you can use the modulo operator (%) to check whether a number can be evenly divided into both numbers.

  What rules have to be enforced based on entity type

What rules would have to be enforced based on entity type? Choose one entity type and discuss what enforcement is needed by the database or application.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd