IST 210 Team H Ford Dealerships Online Management System

1,314 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,314
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
19
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

IST 210 Team H Ford Dealerships Online Management System

  1. 1. IST 210 Team H Ford Dealerships Online Management System
  2. 2. Description <ul><li>Tracks transactions </li></ul><ul><li>Dealership employees </li></ul><ul><li>Cars in stock </li></ul><ul><li>Dealership Locations </li></ul><ul><li>Customers </li></ul>
  3. 3. Original ER Diagram
  4. 4. Modified ER Diagram
  5. 5. Assumptions for ER Diagram (pt. 1) <ul><li>A buyer can buy one to many cars </li></ul><ul><li>A buyer must buy from a salesman </li></ul><ul><li>A salesman sells one to many cars </li></ul><ul><li>A salesman works at one dealership </li></ul><ul><li>A salesman must sell to a buyer </li></ul><ul><li>A salesman can have zero to many subordinates </li></ul><ul><li>A salesman can be managed by zero to many managers </li></ul>
  6. 6. Assumptions for ER Diagram (pt. 2) <ul><li>A dealership employs one to many salesmen </li></ul><ul><li>A dealership sells one to many cars </li></ul><ul><li>A car is bought by one buyer </li></ul><ul><li>A car is sold by one salesman </li></ul><ul><li>A car is located at one dealership </li></ul><ul><li>A record is kept of the amount the car is sold for </li></ul>
  7. 7. Queries <ul><li>Retrieve all cars sold by salesman x </li></ul><ul><li>How many model cars were sold at dealership x over price x </li></ul><ul><li>Retrieve all cars which were at the dealership before date </li></ul><ul><li>Retrieve all buyers which live in the same town as dealership x </li></ul><ul><li>How many cars under price are at dealership x </li></ul><ul><li>Where can one find a model car under price </li></ul><ul><li>Retrieve all people with credit score x and cars over price x </li></ul><ul><li>how many cars are older then date x </li></ul><ul><li>Find the average selling price from all salesmen at each dealership </li></ul><ul><li>Retrieve all transactions under price x from car x </li></ul>
  8. 8. Relational Schema (before Optimization)
  9. 9. Relational Schema (after Optimization)
  10. 10. Scenario <ul><li>The CEO of Ford wants to move the best salesman to the worst dealership to improve sales. </li></ul>
  11. 11. Step 1 <ul><li>Find the salesman with the highest profit, where profit is equal to the selling price – MSRP. </li></ul>
  12. 12. Step 2 <ul><li>Find the dealership with the lowest overall profit, where profit equals selling price – MSRP. </li></ul>
  13. 13. Step 3 <ul><li>Move the salesman with the highest profit to the dealership with the lowest profit. </li></ul><ul><li>(Update the salesman’s dealership ID.) </li></ul>

×