Database Answers Sierra Club Green Home

Home Ask a Question Best Practice Careers Contact Us Data Models Search Site Map
Data Model for Car / Vehicle Sales (Simple)   
Back to the Data Model.
Entities are shown in Bold to provide a start to the design of the Data Model.
The Area being Modelled is :-
Subject:  Car / Vehicle Sales (Simple)

Question: Gofar Travel Vehicles sells new and used recreational vehicles.
When new vehicles arrive at Gofar Travel Vehicles from the manufacturer, a new vehicle record is created.
Included in the new vehicle record is the following information:
  • vehicle identification number (VIN)
  • name
  • model
  • year
  • name of manufacturer
  • cost or amount paid to the manufacturer. When a customer arrives at Gofar Travel Vehicles, he/she works with a salesperson to discuss a vehicle purchase. The customer can purchase a new or used vehicle. On the new vehicle the customer can add options like a microwave, special lighting, fridge, stove, better seats etc. When the purchase has been agreed to, a sales invoice is completed by the salesperson. The invoice summarizes the details of the purchase. It will include all customer information, information on the vehicle being purchased and any options (if any), information on the trade-in vehicle and the trade-in dollar amount allowed (if a trade in exists). If the customer requests dealer-installed options, they will be listed on the invoice as well as the price. The invoice also summarizes the final price, plus any applicable taxes (7%) and license fees. The transaction concludes with a customer signature on the sales invoice. Customers are assigned a customer ID when they make their first purchase from Gofar Travel Vehicles. Name, address, and phone number are recorded for the customer. If there is a trade-in vehicle it is described by a serial number, make, model, and year. Dealer installed options are described by an option code, description, cost from the manufacturer and selling price. Each invoice will list just one customer and one vehicle sold. It is rare but if a customer wants 2 vehicles then it requires two invoices be prepared. A person does not become a customer until they purchase a vehicle. Over time, a customer may purchase a number of vehicles from Gofar Travel Vehicles. Every invoice must be filled out by only one salesperson. A new salesperson may not have sold any vehicles, but experienced salespeople have sold many vehicles. A customer may decide to have no options added to the vehicle, or may choose to add many options. The optional equipment (stove, fridge, fire extinguisher) is stored in the warehouse. An option like a fire extinguisher can be installed on different types of vehicles. A customer may trade in only one vehicle toward the purchase of a new vehicle. The trade in vehicle may be sold later to another customer, who later trades it in on another Gofar Travel Vehicle. The same vehicle over time can be sold several times. 1) Design the database to handle the above. 1. Relationships 2. Mapping Entities to table 3. Relation Schema 4. Relation Instance 5. Entity Relationship Diagram 6. ERD representation of Relational Schema 7. Normalization.


  • © DataBase Answers Ltd. 2012
    About Us Contact Us