Draw an ER diagram for this database using UML notation

Assignment Help Database Management System
Reference no: EM132311018

Database Systems Assignment - Database Modelling

Answer the following questions.

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 and these three types of stages are disjoint. 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) Translate the ER diagram to relations, represented by their schema. Make sure that you apply the correct translation strategies based on the type of relationships in the ER diagram.

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;
  • You are expected to use the UML way to draw the ER diagrams.
  • 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.
  • The abbreviated schema description, with highlighted primary keys, will be sufficient for presenting the translated relations;
  • Please produce separate relations for the superclass and subclasses if they are needed in the ER modeling;
  • Explanations should be provided for the foreign keys added to the relations if any.

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.

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 a manager can work 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. A single employee can represent multiple departments on the same project. 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. Please refer to Page 26 of the Module 10 lecture notes for the details of the above requirements.

(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.

Please follow carefully the following guidelines when you finish this question:

  • Please highlight the primary keys for the normalized tables;
  • You should show the detailed normalization process, rather than only the final normalization result.

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: EM132311018

Questions Cloud

What information would you plan on including down the line : What would people notice first? What information would you plan on including down the line?
People from their normal ethical stance : Why do you think this is the case? Explain a tragic event that has happened in your lifetime as an example.
Counseling disposition reflection worksheet : Now that you have identified dispositions that you currently meet, review the disposition document again and consider any dispositions that you do not meet.
Discuss how the values and principles underlying services : NSB102 - Professional Practice and Cultural Safety - identify which you have chosen and then explain the assumptions about people and their wellness/illness
Draw an ER diagram for this database using UML notation : CSC3400 Database Systems Assignment - Database Modelling, University of Southern Queensland, Australia. Draw an ER diagram for this database using UML notation
How scientific method is used in sociological research : Define and describe scientific method. Explain how scientific method is used in sociological research. what reliability and validity mean in research study.
Effective customer service manager : Describe in a short paragraph how you would apply your managerial talents in a customer service setting.
What has cisco done to maintain its unique culture : What has Cisco done to maintain its unique culture? What advice do you have for John Chambers to manage Cisco's culture through the transition?
Investors expect the market rate of return : Investors expect the market rate of return this year to be 10.50%. The expected rate of return on a stock with a beta of 1.3 is currently 13.65%.

Reviews

len2311018

5/24/2019 12:31:54 AM

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 question on just one page, you should use no more than two pages for this question.

Write a Review

Database Management System Questions & Answers

  Techniques to store and retrieve data using an sql database

Develop an understanding of strengths and limitations of various data storage, retrieval methods and models. The assessment requires students to conduct a survey and report on data storage and retrieval techniques and data models.

  How use Relational DBMSs In storing large amounts of Data

Question: Explain how we can use Relational DBMSs In storing large amounts of Data

  Use of foreign key

If a foreign key contains either matching values or nulls, the table(s) that make use of such a foreign key is/are said to exhibit __________ integrity

  Draw the original and final data models and state assumption

Transform the following entities into 1NF and 2NF entities. Draw the original and final data models, and state any reasonable assumptions. (Note: primary keys are underlined)

  Create an erd for this video store case

Create an ERD for this video store case. Turn in an ERD with appropriate relationship sentences. You can use drawing tools in MS Word or MS Visio to create your ERD. Make sure your relationship sentences are consistent with your relationship in yo..

  A merge scan join and a nested loop join algorithm

Explain the difference between a Merge Scan Join algorithm and a Nested Loop Join algorithm, and why in this case it chose the former.

  Draw dfd for placing order based on the e-r diagram

Draw a DFD (Context and Level 1) for placing an order based on the E-R diagram shown here.

  What are the typical phases of query processing

What are the typical phases of query processing? With a neat sketch discuss these phases in high-level query processing. Discuss the reasons for converting SQL queries into relational algebra queries before query optimization is done

  Design and implement relational databases for a set of data

Design, develop, and implement relational databases for a set of data. Apply the fundamentals of the underlying programming language to create database scripts. Create database applications that utilize an event-driven environment.

  List all columns and all rows from the customer table

List the FirstName, Lastname, City and the Country columns from the Customer table. List all rows.

  Create a dtd file and an xsd file that specify the schemas

Create an XML file that describes 3 product elements; each product has three sub-elements: id, name, and description.

  Design a high-level conceptual view of a data warehouse

Design a high-level conceptual view of a data warehouse (DW) for Huffman Trucking using Microsoft Visio that shows the following: Integration layers

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