The Work Gym / Free resources / Free practice datasets
Shipping and logistics dataset
Two months of freight shipments from Copperline Freight, a fictional Canadian carrier: each shipment's customer, lane, ship date, promised date and delivery date, and the stream of status updates behind them. Built for on-time delivery analysis, the first thing a logistics analyst is asked for.
Download
- shipping.xlsxExcel workbook, one sheet per table (2) · 31 KB
- shipping.sqlSQL script for PostgreSQL, MySQL, SQLite and DuckDB · 92 KB
CSV files, one per table
- shipment_events.csv495 rows · 56 KB
- shipments.csv170 rows · 16 KB
The data is fictional and free to use for practice, teaching and portfolio work. A link back is appreciated.
What to practice
Copperline Freight is a fictional carrier moving freight on six Canadian lanes, such as Toronto to Montreal, for eight business customers. The data covers September and October 2026. Every name and number is invented.
- Work out the on-time rate by lane and by customer from
shipments. - Rebuild
shipmentsfromshipment_eventsby keeping each shipment's latest update. - Decide what to do with cancelled and in-transit shipments before you count on-time deliveries, and say why.
Practice with checked exercises
- Move the on-time report into the warehouse
Copperline's on-time report is a spreadsheet someone rebuilds every Monday. Rebuild it on the warehouse: one current row per shipment in Snowflake, a tested dbt model, and a Tableau view operations can trust.
- Two dashboards, two on-time numbers
Operations reports one on-time rate and finance reports a lower one, for the same month. Find out why, write the measure both teams agree on, and recommend which number goes to customers.
Data dictionary
Table and column names are exactly as they appear in the files.
shipment_events495 rows
Every status update, one row each.
- shipment_idVARCHAR
- Shipment number
- customerVARCHAR
- Customer
- laneVARCHAR
- Origin to destination
- statusVARCHAR
- Booked, In transit, Delivered or Cancelled
- shipped_onDATE
- Ship date
- promised_onDATE
- Promised delivery date
- delivered_onDATE
- Delivery date (empty until delivered)
- weight_kgDOUBLE
- Weight in kilograms
- revenue_cadDOUBLE
- Revenue in Canadian dollars
- updated_atTIMESTAMP
- Time of the update
First rows
| shipment_id | customer | lane | status | shipped_on | promised_on | delivered_on | weight_kg | revenue_cad | updated_at |
|---|---|---|---|---|---|---|---|---|---|
| CF-26035 | Tamarack Tools | Vancouver to Calgary | Booked | 2026-09-01 | 2026-09-04 | 412.6 | 344.45 | 2026-08-31 15:19:00 | |
| CF-26140 | Glacier Outfitters | Calgary to Edmonton | Booked | 2026-09-01 | 2026-09-02 | 642.7 | 375.63 | 2026-08-31 15:40:00 | |
| CF-26021 | Harbourview Foods | Toronto to Montreal | Booked | 2026-09-01 | 2026-09-03 | 1694.6 | 1119.54 | 2026-08-31 15:45:00 | |
| CF-26003 | Tamarack Tools | Toronto to Montreal | Booked | 2026-09-01 | 2026-09-03 | 1095.9 | 736.38 | 2026-08-31 15:47:00 | |
| CF-26036 | Glacier Outfitters | Calgary to Edmonton | Booked | 2026-09-01 | 2026-09-02 | 172.4 | 126.37 | 2026-08-31 15:48:00 |
shipments170 rows
The current state of each shipment.
- shipment_idVARCHAR
- Shipment number
- customerVARCHAR
- Customer
- laneVARCHAR
- Origin to destination
- statusVARCHAR
- Delivered, In transit or Cancelled
- shipped_onDATE
- Ship date
- promised_onDATE
- Promised delivery date
- delivered_onDATE
- Delivery date (empty until delivered)
- on_timeBOOLEAN
- Delivered on or before the promised date (empty when not delivered)
First rows
| shipment_id | customer | lane | status | shipped_on | promised_on | delivered_on | on_time |
|---|---|---|---|---|---|---|---|
| CF-26001 | Tamarack Tools | Winnipeg to Regina | Delivered | 2026-09-13 | 2026-09-15 | 2026-09-15 | true |
| CF-26002 | Birchwood Home | Winnipeg to Regina | Delivered | 2026-09-05 | 2026-09-07 | 2026-09-07 | true |
| CF-26003 | Tamarack Tools | Toronto to Montreal | Cancelled | 2026-09-01 | 2026-09-03 | ||
| CF-26004 | Birchwood Home | Toronto to Montreal | Delivered | 2026-09-21 | 2026-09-23 | 2026-09-23 | true |
| CF-26005 | Harbourview Foods | Toronto to Montreal | Delivered | 2026-09-27 | 2026-09-29 | 2026-09-29 | true |
Questions
Why are there two shipment tables?
shipment_events is the raw feed, one row per status update; shipments is the current state of each shipment. Turning the first into the second is a common data modeling task, and the two give different on-time numbers if you are not careful.
More datasets
Retail sales dataset
Weekly sales by store and category, promotions and stock checks for a grocery chain.
Healthcare dataset
Patients, encounters, diagnoses, labs, medications, appointments and claims.
SQL sample database: Kestrel online store
Products, customers, orders, employees, suppliers, tickets and web events in 17 tables.
Customer churn dataset
Subscribers, cancellations, weekly workouts and an A/B test of an annual offer.
Employee and HR dataset
Employees, exits, salaries, recruiting, headcount and an engagement survey.