6
X402.5 Data Modeling and Database Design Assignment 2 The user views shown here are from an automobile dealership that sells and services various makes and models of new and used vehicles with a specialty in the Saturn make. Using the following user views, develop a logical (3 rd normal form relational) data model. Pay special attention to the notes regarding management requests for additional features. Inventory Complete listing of all vehicles for sale that are owned by the dealership. VIN Year Make Model Body_Style Color Interior Cost List Price (New) List Sale Price 1G8ZK54762Z304996 2002 Saturn SL2 4 Dr Sedan Gold Tan Cloth 14,500.00 17,520.00 8,630.00 1X9ZX58473K493822 2008 Saturn Aura 4 Dr Sedan Black Grey Cloth 17,210.00 20,395.00 20,395.00 Used Inventory Worksheet: Supplemental information for used vehicles in stock. VIN Stock Number Mileage Condition Notes 1G8ZK54762Z304996 1796 12,300 Excellent One owner California SMOG Light duty in temperate climate NOTE: The current application contains Stock Numbers only for used cars. Management would like a stock number for new vehicles as well, in order to make record-keeping easier.

Used Inventory Worksheet - andyoppel.com · 1G8ZK54762Z304996 2002 Saturn SL2 4 Dr Sedan Gold Tan Cloth 14,500.00 17,520.00 8,630 ... E1 Annual salary 110,000 0105 ... 0105 Slip 1T8RW84731K96784

  • Upload
    tranbao

  • View
    217

  • Download
    0

Embed Size (px)

Citation preview

X402.5 Data Modeling and Database Design Assignment 2

The user views shown here are from an automobile dealership that sells and services various makes and models of new and used vehicles with a specialty in the Saturn make. Using the following user views, develop a logical (3rd normal form relational) data model. Pay special attention to the notes regarding management requests for additional features.

Inventory Complete listing of all vehicles for sale that are owned by the dealership. VIN Year Make Model Body_Style Color Interior Cost List Price

(New) List Sale Price

1G8ZK54762Z304996 2002 Saturn SL2 4 Dr Sedan Gold Tan Cloth 14,500.00 17,520.00 8,630.00 1X9ZX58473K493822 2008 Saturn Aura 4 Dr Sedan Black Grey Cloth 17,210.00 20,395.00 20,395.00

Used Inventory Worksheet: Supplemental information for used vehicles in stock. VIN Stock Number Mileage Condition Notes 1G8ZK54762Z304996 1796 12,300 Excellent • One owner

• California SMOG • Light duty in temperate climate

NOTE: The current application contains Stock Numbers only for used cars. Management would like a stock number for new vehicles as well, in order to make record-keeping easier.

Personnel Listing of employees of the dealership. Empl. ID

Name Address Manager Empl. ID

Phone Numbers Dept. Job Title Pay Grade

Pay Method(s)

0001 Doug Dealermeister

1260 Fat Cat Way Berzerkley, CA 94606

510-555-1234 W 510-555-9854 C

Mgmt General Manager

E1 Annual salary 110,000

0105 Slippery Sam Watson

427 E. Main St. Apt. 27 Alameda, CA 94501

0001 510-555-1254 W Sales Sales Manager S1 Annual salary 45,000 Commission 0.5% Bonus up to 20,000

0106 Wally Wrench

Pinole Trailer Park Space 27 Pinole, CA 98594

0017 None Serv. Mechanic I M1 Hourly 27.00

0107 Leisure Suit Larry

General Delivery Alameda, CA 94501

0105 800-BUY-CARS Sales Salesperson III S3 Commission 2.5%

Staff Vehicle Assignment Some staff members are assigned a new car to drive for both personal and business use. While cars can be shifted from one employee to another, no car is assigned to more than one employee at any given point in time. Employee ID

Employee Name VIN Assigned Mileage Out Mileage In Date Out Date In

0001 Doug D. 1Y7ZY56483J483816 32 5024 06/01/2007 01/02/2008 0001 Doug D. 1X9ZX58473K493822 28 01/02/2008 0105 Slip 1T8RW84731K96784 15 10/22/2007 0107 L.S. Larry 2T5EC846363J958473 1020 03/15/2008 NOTE: These assignment records are currently kept in a spreadsheet. Management would like a solution to two current issues with this method: 1) They are unable to quickly tell where a vehicle is when there is only one of a particular make/model/color in stock, and an employee has that vehicle checked out to them; and 2) The history in the spreadsheet makes it difficult for them to find only current assignments. Also note that some of the VINs are made up so they may not match the standard pattern.

Dealer Sticker

Note: Option packages may themselves include other option packages

Sales Invoice Buyer: Andrew J. Oppel Co-Buyer: Laura P. Oppel Date: 10/26/2002 1234 Some Street 1234 Some Street Alameda, CA 94501 Alameda, CA 94501 New/Used: New Year: 2002 Make/Model: Saturn SL2 Odometer: 12 VIN: 1G8ZK54762Z304996 Description Item

Amount Subtotal

Cash Price Vehicle 17,500.00 Cash Price Accessories 0.00 Document Preparation Fee 45.00 Smog Fee 0.00 Sales Tax (on Vehicle and Accessories) 1,449.11 Luxury Tax 0.00 Service Contract (optional) 1,920.00 Prior Balance 0.00 Other Fees 0.00

Total Cash Price 20,934.11 License Fees 159.00 Registration/Transfer/Titling Fees 0.00 Smog Impact Fee 0.00 Tire Waste Fee 5.00 Other Government Fees 0.00

Total Government Fees 164.00 Insurance Fees 0.00 Smog Certification Fee 0.00

Total Misc. Fees 0.00 Trade-In: 1993 Pontiac Bonneville SSE Odometer: 50658 VIN: 1G2HZ5310P1258778

(3,000.00)

Prior Credit or Lease Balance (0.00) Manufacturer’s Rebate (0.00) Cash Downpayment (0.00)

Total Downpayment (3,000.00) Net Due 18,098.11

Service Invoice