Sample car sales data
1,000 × 13rows × columns in the 1,000-row file
Updated 3 November 2026. Fictional U.S. businesses and people, generated with a fixed seed.
textnumberdateyes/no
Largest file10,000rows; also 100 and 1,000
Columns13with a data dictionary below
Dates2024-01-01 – 2024-12-31range in the file
LicenceCC0synthetic, free for any use
What is in it
Each row is one car sold in 2024 by a fictional five-location dealer group: dealership, salesperson, new or used, body type, fuel, model year, mileage, sticker price, agreed price, financing and trade-in. No real brands or dealers.
More practice tables like this one: all 14 newer sample datasets.
First rows
point at a column to light it up
| sale_idtext | sale_datedate | dealershiptext | salespersontext | conditiontext | body_typetext | fueltext | model_yearnumber | mileagenumber | list_pricenumber | sale_pricenumber | financingtext | trade_inyes/no |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CS52001 | 2024-04-01 | Airport Road | Linda Khan | Used | SUV | Gas | 2016 | 106400 | 12200 | 11700 | Loan | FALSE |
| CS52002 | 2024-09-15 | Northside | Charles Nelson | Used | SUV | Gas | 2014 | 110300 | 9800 | 9700 | Loan | FALSE |
| CS52003 | 2024-04-04 | Downtown | Patricia Mitchell | New | Minivan | Gas | 2025 | 27 | 40500 | 39300 | Loan | FALSE |
| CS52004 | 2024-08-09 | Northside | Stephanie Mitchell | Used | Coupe | Gas | 2020 | 60200 | 19700 | 18100 | Cash | FALSE |
| CS52005 | 2024-06-26 | Riverside | Samuel Brown | Used | SUV | Gas | 2016 | 117800 | 11400 | 10900 | Cash | TRUE |
| CS52006 | 2024-09-05 | Airport Road | Stephanie Lewis | New | SUV | Gas | 2024 | 22 | 43400 | 43500 | Cash | TRUE |
| CS52007 | 2024-09-18 | Downtown | James Allen | New | Minivan | Gas | 2025 | 37 | 42000 | 41600 | Loan | FALSE |
| CS52008 | 2024-11-23 | Riverside | Amanda Kim | New | Pickup | Electric | 2024 | 4 | 57500 | 57300 | Loan | FALSE |
| CS52009 | 2024-09-01 | Downtown | Michelle Smith | New | Sedan | Gas | 2024 | 29 | 32500 | 31500 | Cash | FALSE |
| CS52010 | 2024-10-01 | Northside | William Harris | Used | SUV | Gas | 2018 | 80500 | 18100 | 17600 | Loan | FALSE |
Revenue by body type
USD, 1,000-row file
Show as a table
| body_type | value |
|---|---|
| SUV | $10,882,200 |
| Pickup | $8,390,600 |
| Sedan | $4,712,600 |
| Minivan | $2,218,600 |
| Hatchback | $1,811,300 |
| Coupe | $1,189,500 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| sale_id | text | Sale number |
| sale_date | date | Sale date (2024) |
| dealership | text | Fictional dealership location |
| salesperson | text | Fictional salesperson |
| condition | text | New or Used |
| body_type | text | Sedan, SUV, Pickup, Hatchback, Minivan or Coupe |
| fuel | text | Gas, Hybrid or Electric |
| model_year | integer | Model year |
| mileage | integer | Odometer at sale (miles) |
| list_price | integer | Sticker or asking price (USD, fictional) |
| sale_price | integer | Agreed price (USD) |
| financing | text | Cash, Loan or Lease |
| trade_in | boolean | Customer traded in a car (TRUE/FALSE) |
Practice questions
answers checked in SQL and in Python
Revenue by dealership?
Downtown $6,185,800; Northside $6,065,700; Airport Road $5,826,900; Riverside $5,795,600; Westgate $5,330,800
Excel
=SUMIFS(K:K,C:C,"Downtown")SQL
SELECT dealership, SUM(sale_price) AS rev FROM car_sales GROUP BY dealership ORDER BY rev DESC, dealershipFile: car-sales-1000
Average discount (list minus sale price) for new and used cars?
Used $957.04; New $814.81
SQL
SELECT condition, ROUND(AVG(list_price - sale_price),2) AS d FROM car_sales GROUP BY condition ORDER BY d DESCFile: car-sales-1000
Top 3 salespeople by cars sold?
William Harris 47; James Smith 43; Michelle Smith 42
SQL
SELECT salesperson, COUNT(*) AS n FROM car_sales GROUP BY salesperson ORDER BY n DESC, salesperson LIMIT 3File: car-sales-1000