Sample restaurant sales data
1,000 × 11rows × 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
Columns11with a data dictionary below
Dates2024-01-01 – 2024-12-29range in the file
LicenceCC0synthetic, free for any use
What is in it
Each row is one line on a ticket at a fictional restaurant in 2024: ticket number, date and time, item, category, quantity, price and line total, dine-in/takeout/delivery and payment method.
First rows
point at a column to light it up
| order_line_idtext | order_idtext | datedate | timetext | itemtext | categorytext | quantitynumber | unit_pricenumber | line_totalnumber | order_typetext | payment_methodtext |
|---|---|---|---|---|---|---|---|---|---|---|
| L1000001 | T050001 | 2024-04-29 | 14:39 | Cheeseburger | Burgers | 1 | 13 | 13 | Delivery | Card |
| L1000002 | T050001 | 2024-04-29 | 14:39 | Margherita Pizza | Pizza | 1 | 14 | 14 | Delivery | Card |
| L1000003 | T050001 | 2024-04-29 | 14:39 | Veggie Pizza | Pizza | 1 | 15 | 15 | Delivery | Card |
| L1000004 | T050002 | 2024-06-02 | 12:22 | Soda | Drinks | 2 | 2.5 | 5 | Takeout | Card |
| L1000005 | T050002 | 2024-06-02 | 12:22 | Fries | Sides | 1 | 4.5 | 4.5 | Takeout | Card |
| L1000006 | T050002 | 2024-06-02 | 12:22 | Cheeseburger | Burgers | 1 | 13 | 13 | Takeout | Card |
| L1000007 | T050003 | 2024-12-04 | 20:39 | Pepperoni Pizza | Pizza | 2 | 16 | 32 | Takeout | Cash |
| L1000008 | T050004 | 2024-03-25 | 13:22 | Margherita Pizza | Pizza | 1 | 14 | 14 | Dine-in | Card |
| L1000009 | T050004 | 2024-03-25 | 13:22 | Fries | Sides | 3 | 4.5 | 13.5 | Dine-in | Card |
| L1000010 | T050005 | 2024-11-19 | 18:36 | Margherita Pizza | Pizza | 1 | 14 | 14 | Dine-in | Card |
Revenue by menu category
USD, 1,000-row file
Show as a table
| category | value |
|---|---|
| Pizza | $5,676 |
| Burgers | $2,413 |
| Sandwiches | $1,841 |
| Salads | $1,259 |
| Sides | $956 |
| Drinks | $702 |
| Desserts | $538 |
| Soups | $292 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| order_line_id | text | Line number, unique |
| order_id | text | Ticket number (several lines can share it) |
| date | date | Order date (2024) |
| time | text | Order time HH:MM |
| item | text | Menu item |
| category | text | Menu category |
| quantity | integer | Units |
| unit_price | decimal | Menu price (USD) |
| line_total | decimal | quantity x unit_price |
| order_type | text | Dine-in, Takeout or Delivery |
| payment_method | text | Card, Cash or App |
Practice questions
answers checked in SQL and in Python
Revenue by menu category?
Pizza $5,676.00; Burgers $2,413.00; Sandwiches $1,841.00; Salads $1,259.00; Sides $956.50; Drinks $702.00; Desserts $538.50; Soups $292.50
Excel
=SUMIFS(I:I,F:F,"Pizza")SQL
SELECT category, ROUND(SUM(line_total),2) AS v FROM restaurant_orders GROUP BY category ORDER BY v DESCFile: restaurant-orders-1000
How many tickets are there, and what is the average ticket value?
429 tickets, average $31.88
SQL
SELECT COUNT(DISTINCT order_id), ROUND(SUM(line_total)/COUNT(DISTINCT order_id),2) FROM restaurant_ordersA ticket (order_id) has several lines, so count distinct order_id values; in Excel 365 use =COUNTA(UNIQUE(B2:B1001)).
File: restaurant-orders-1000