Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an ER Diagram Instructions: 1. Draw the Entity Relationship diagram for the following prompt: a. Consider a car dealership that sells new and used

Create an ER Diagram
image text in transcribed
Instructions: 1. Draw the Entity Relationship diagram for the following prompt: a. Consider a car dealership that sells new and used cars. You would like to be able to track the information about the cars that are on the lot, the sales of the cars, and your sales staff. Each sales person will have a first, middle and last name, an address, a hire date, a base salary, a phone number, and a commission rate. Each car will have a Vehicle Identification Number, a date that the dealership purchased it, a price the dealership purchased it for, a cost of repairs, a year, a make (Chevy, dodge, etc), a model, the number of miles on the car, one or more colors, a list price, and whether the car is new or used. We also need to track information about the sale of a car. We need to know what car was sold, which salesperson performed the sale, the sales price, the profit (sales price minus - (cost of repairs and purchase]), the date of the sale, and the commission paid to the salesperson (commission rate * profit). We do not need to store customer information. b. A Sale can only have one associated car, and one associated salesperson. If a customer wants to purchase multiple cars, that will be counted as multiple sales. Sales people will not work together on a sale. c. In the real world, a car can technically be sold multiple times. A person could buy the car, then a few years later trade it back in to the dealership so it can be sold again. However, even though in the real world it is the same car, our database will treat them like different cars. While they have the same VIN, the date that the dealership purchased it will be different (among other things such as mileage). So the same VIN could appear twice in our Car table. If we overwrite the information about the car, we would corrupt the information about the previous time the car was sold. So from our database perspective it's not the same car, even though it has the same VIN. SO VIN cannot be the primary key. d. A salesperson's commission can change over time. If that happens, the commission they were paid for past sales is unaffected. The profit for a car sale only needs to be calculated once. The value will not change after that. e

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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

LO2 Explain the major laws governing employee compensation.

Answered: 1 week ago

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago