If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Design Help!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-04, 19:50
hello_world hello_world is offline
Registered User
 
Join Date: Nov 2004
Posts: 9
Design Help!

hi I'm creating a project and i just need some guidance on if my ERD is designed right so i can move on to creating tablesTips and welcomed!...thx...Here are the business rules.

The Ocean Ford dealership wishes to manage data about their car sales. They are interested in keeping information about their customers. They wish to record data about all customers, whether they purchase a car or not – this data includes, name, address, phone and what marketing tool brought them into the dealership (recent newspaper ad about a particular vehicle, TV commercial, word of mouth or radio commercial).

When customers leave without purchasing a vehicle, the dealership wishes to ensure a methodical follow up strategy is taken. The dealership wants to record the following:
(1) the date and salesperson who places a telephone call to the customer thanking them for their visit and inviting them to return, as well as the customer’s response;
(2) The date and the name of the sales manager who places a telephone call to the customer thanking them for their visit and inviting them to return, as well as the customer’s response to the telephone call and;
(3) The date a letter from the owner or Ocean Ford is sent to the customer thanking them for their visit.

When customers purchase a new vehicle the dealership wishes to record for tracking purposes whether the car purchased is on order or is in current inventory. When a customer purchases a previously owned vehicle they wish to record whether the customer purchases an extended warranty and the mileage at the time of sale.

Ocean Ford also wishes to maintain data about their inventory new and previously owned. Data about cars, trucks, SUVs and minivans include: vehicle identification number, model, exterior color, interior color and year. The cars, Focus and Mustang, both have the additional attribute, package; while the Five Hundred model has the unique attribute, body style. Trucks have a few unique attributes (with the exception of the 2005 E series): cab, box, drive and doors. The SUVs, Escape, Explorer, and Excursion, have the unique attributes, drive and engine. The SUVs, Explorer Sport Track and Expedition, just has the attribute, drive. Although Ocean Ford is contemplating adding commercial trucks to their inventory, currently there are no other types of vehicles in Ocean Ford’s inventory. Obviously a vehicle can be only one kind of vehicle at a particular time.

A customer may purchase one or more new or used vehicles from inventory and each vehicle is purchased by one or more customers (a new car in inventory may be traded in the next year, entered into inventory and then sold to another customer.) The organization is interested in the date of purchase, amount of sale and salesperson(s) completing the sale.
Attached Images
File Type: jpg ERD.jpg (35.2 KB, 99 views)
Reply With Quote
  #2 (permalink)  
Old 12-12-04, 07:19
Matt_T_hat Matt_T_hat is offline
Registered User
 
Join Date: Sep 2003
Location: UK
Posts: 122
Home work?

So what's your question?

This looks like a homework assignment. I have no intention of doing your homework but i will consider answering specific questions if you are actually having difficulties with an issue.
__________________
Matt the Hat says: "what!?"
A child of five could understand this! Fetch me a child of five!
SCARY HARD CHALLENGE: http://www.dbforums.com/database-concepts-design/988682-better-relational-design.html
Reply With Quote
  #3 (permalink)  
Old 12-12-04, 22:40
hello_world hello_world is offline
Registered User
 
Join Date: Nov 2004
Posts: 9
my questions are do i break the vehicle table into new and used or do i just put is as an attribute of VEHICLE?
Reply With Quote
  #4 (permalink)  
Old 12-13-04, 04:46
Bud Bud is offline
Registered User
 
Join Date: Dec 2003
Location: Dallas, TX
Posts: 995
Quote:
Originally Posted by hello_world
my questions are do i break the vehicle table into new and used or do i just put is as an attribute of VEHICLE?
Hi hello_world,

Though I am no SQL pro I have designed a few databases and things like that depend on the individual normally. But my view is that you set that as an Attribute of the Vehicle table. REASON: If you were to make a NewVehicle table and UsedVehicle table, that to me seems a bit redundant. My thing would be to make that an Attribute of Each Vehicle. Then, later when the vehicle is traded back in you only change that attribute which then makes it as though you placed it into a separate table. Also, for reporting purposes, you can base your report on both New and Used and get two views of the data still.
Like I stated, that is the way I would do it and I am not a pro at this at all. But I have done something like this in the past and it worked well for me.

have a nice one,
BUD
Reply With Quote
  #5 (permalink)  
Old 12-13-04, 11:57
hello_world hello_world is offline
Registered User
 
Join Date: Nov 2004
Posts: 9
Thanks for the help Bud...This is what I concluded
Attached Images
File Type: jpg ERD.jpg (35.8 KB, 124 views)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On