Creating an ER Diagram and Relational Schema for Tbay Motors

Download Solution Order New Solution

Assignment Task

1. Introduction

In this assignment, use ERDPlus to create an ER diagram, a relational schema, and answer a question.

2. ER Diagram

To create an ER diagram, click NEW DIAGRAM… on the website, select ER Diagram and type a name for it. A new ER Diagram file will be created. Click it to start editing. In your ER diagram, make sure to clearly show entities, relationships, and attributes, based on the following requirements: Tbay Motors is a car dealership that will use a database to keep track of:

  • For each sales employee: salesname, startdate, number of years with dealership (yearswith), unique salessin, unique salesid.
  • For each service employee: servicename, unique servicesin, unique serviceid.
  • For each customer: unique cid, cname (composed of first name cfname and last name clname), cphonenumber (having one or more phone numbers), and cemail (optional).
  • For each vehicle: year, make, model, unique vin. - For each repair appointment: radate, unique raid. Additional requirements:
  • A sales employee must have at least one assigned customer but can have many assigned customers. Each customer is assigned to exactly one sales employee.
  • A vehicle is owned by exactly one customer. Each customer owns at least one vehicle but may own many. 
  • A vehicle may have many repair appointments but does not have to have any. Each repair appointment is associated with exactly one vehicle.
  • Each service employee participates in between zero and many repair appointments. Each repair appointment has at least one service employee participating in it but can have up to three service employees participating in it.
  • Each sales employee selects exactly one service employee as their tech expert. A service employee can be assigned to up to two sales employees as a tech expert, but does not have to be assigned to any

After finishing the ER diagram, click LABEL and click on the workspace, make sure you put the label box below the diagram. Then, type your student ID and full name in Text Label. You can drag the green triangle of the label box to resize it and show your information in one line. Click SAVE and then click MENU, Export Image…, select High Resolution and click SAVE. Create a MS Word document for this assignment. Copy the image and paste it in the document, save it with a file name like yourstudentnumber_yourlastname_Assign1.docx.

3. Relational Schema

Use ERDPlus again to map the ER diagram you just created (ER diagram for Tbay Motors) into its corresponding relational schema. To do this, click DOCUMENTS to return to the homepage. Then, click the “three dots” menu button of your ER diagram file and select Convert to Relational Schema.

In your relational schema, reorganize the relations to clearly show all resulting relations and columns (avoid too much overlapping). Clearly indicate all primary keys (underline them), and all foreign keys which should have lines pointing to their corresponding primary keys.

After finishing the relational schema, click LABEL and similarly put a label box below the relational schema with your student ID and full name. Click SAVE and then click MENU and export the image with high resolution. Copy and paste the image to the MS Word document you created previously. Place your ER diagram first, followed by the relational schema.

4. Question

At the end of the MS Word document, answer the following question:

  • How many entities are in the ER diagram, and how many relations are in the relational schema? Explain why the two numbers are different (or the same).

This Engineering has been solved by our PhD Experts at My Uni Paper.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.