Construct a relational schema for the ER-diagram

Assignment Help Database Management System
Reference no: EM131490990

Database Systems Assignment - Database Modelling

Answer the following questions in a word processing document-

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. Each team is led by a team leader who himself/herself is also a rider. 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. 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. It is also possible that there are not any riders participating in a stage.

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 (= difficulty level), the number of mountains in it, and the best climber (a rider). For a flat stage we record the number of intermediate sprints. For a team time trial we record which team won the stage.

For the information of the Best Climber of Mountain Stage and the Winning Team of TeamTimeTrial Stage, please model them as attributes instead of relationships.

(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 the ER diagram;
  • Always highlight the primary keys for the entities created in the ER diagram and the relations transformed from the ER diagram;
  • Please do not use any artificial primary key (such as stage#). All the natural primary keys are provided in the instruction.

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 different departments. A department manager is represented by his/her name. The number of hours and hourly rate of pay for an employee to carry out a project are determined by himself/herself 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 affiliated with a few different departments and work in multiple projects at the same time. A project may involve multiple employees. Names for employees, managers, departments and projects are not generally unique. A project will only be conducted in a single city. Multiple cities from the same country may appear in the table, however, cities are uniquely named within and across all countries.

Answer the following questions:

(a) Identify the Functional Dependencies in R. Be sure to only include functional dependencies that satisfy the following 4 rules: 1) Only include non-trivial FDs; 2) Minimize the determinant (LHS), that is, only include full FDs; 3) Maximize the RHS; and 4) Only include FDs that cannot be derived from other FDs using Armstrongs axioms.

(b) Identify the super keys of R based on the Functional Dependencies. You need to use the concept of attribute closure to identify the keys. Intermediate steps in this process should be summarised. There may be many different super keys of R. It would be great if you can present all of them in a smart way rather than enumerating them one by one.

(c) Assume that R is in 1NF. Now normalise 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 sufficient.

Reference no: EM131490990

Questions Cloud

Analyze the merger between zappos and amazon : Analyze the merger between Zappos and Amazon and assess potential issues for Zappos customers. Define SCM and how it can benefit Zappos.
Identify need to be reflective of the project : PPMP20008 - identify need to be reflective of the project described in the selected tender and align to the requirements of the PMBoK and Prince2.
States percentage returns economic recession : State of the economy Probability of the states Percentage returns Economic recession 15% 7.4% Steady economic growth 36% 4.0%
Difficulty thriving in traditional high school environment : MOOC High was developed by Walter Salazar, a high school dropout who had difficulty thriving in a traditional high school environment.
Construct a relational schema for the ER-diagram : CSC3400 & CSC8500 - Database Systems Assignment - Database Modelling. Construct a relational schema for the ER-diagram
What do you think is the significance of the fact : What do you think is the significance of the fact that in Brecht's play The Good Woman of Setzuan, the characters Shen Te and Shui Ta are one in the same?
Framers of the constitution sought to rectify : What appeared to be the short comings that the framers of The Constitution sought to rectify? What led to Shay's Rebellion, impacted detrimentally upon trade.
Is cash flow analysis important for valuing firms : By investing in short-term securities to a bsorb excess cash, a firm reduces its cash flow after investing activities in its published cash flow statement.
What will happen to the disbursement float : Amax Manufacturing Corp. collects $225,000 per day. What will happen to the disbursement float for Amax's customers if the lockbox system is implemented?

Reviews

len1490990

5/10/2017 6:16:48 AM

Australian student, need it as per the guidelines. Answer the following questions in a word processing document, export the document as a PDF file, and submit via the course web site. Please put the ER diagram on one page, and the relational schema on a second page. Use the course Forum to clarify requirements if necessary. While it is recommended to answer this question on just one page, you should use no more than two pages for second question.

Write a Review

Database Management System Questions & Answers

  Create a new database in which to store all the objects

Problem: BoarDome is in the business of producing skate, surf and snow boards. They run a small museum and gift shop, located in airports in cities where the extreme sports are big. Create a new database in which to store all the objects r..

  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.

  Show the names of the customers for whom we have invoices

Show the names of the customers for whom we have invoices.  Show the CUS_CODE of the customers for whom we DO NOT have invoices. Show the names of the customers for whom we DO NOT have invoices.

  Compile a list of five system administration

Compile a list of five system administration best practices for any two operating systems.

  Transaction processing to the database insert functionality

transaction processing to the database INSERT functionality from the previous week to make it operate more reliably. Changes to the database will be committed

  Identify any pattern to these unusual orders

Get all employees that satisfy the following conditions

  Write expressions in relational algebra to answer queries

Write expressions in relational algebra to answer the queries -  List the names of persons who do not own any car.

  What are the advantages of a data warehouse

Why do companies use data warehouses? What are the advantages of a data warehouse? Are there control issues that must be taken into consideration? Explain.

  Show an alternative design using the general notations

Show an alternative design using the General notations for the attribute described in Problem 2 that uses only entity types (including weak entity types if needed) and relationship types.

  Briefly describe what database normalization

Briefly describe what database normalization is and describe the four abnormalities that may occur when creating a database.

  Define the minimum and maximum cardinality

Don't worry about going through the normalization process at this point. Identify the appropriate relationships among the entities, and define the minimum and maximum cardinality of each relationship. Make some additional assumptions about the bus..

  Create a database

Create a database that implements the proposed data warehouse schema.

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