Data Cleaning Reps

Free · Runs in your browser · No sign-up

Practice with real data. Make real mistakes. Build real analytical skills.

This is SQL practice on real, messy data. Every exercise also shows how you'd answer the same question in Excel and Google Sheets. It runs in your browser, with no sign-up.

Start the 30 exercises Open the playground

6 guides · 30 exercises · 24,857 real records

quakes · SQLite in your browser
SELECT type, COUNT(*) AS n
FROM quakes
GROUP BY type
ORDER BY n DESC;
typen
earthquake2626
landslide1
explosion1
3 rows · not every “earthquake” is an earthquake
Real output from this site's quakes table. Run this one yourself →

Built on real public data

Public U.S. government data, credited as text. Not affiliated with or endorsed by any agency. Sources and licenses.

Start here

Work through the six guides in order, finish with the capstone project, then try the exercises.

  1. COUNT(*) vs COUNT(column)
  2. NULLs, blanks and placeholders
  3. Cleaning messy text labels
  4. GROUP BY and CASE
  5. Joining messy keys
  6. SQL vs Excel and Google Sheets
  7. Capstone project: The Messy Data Analyst Challenge

Then head to the 30 practice exercises.

Why practice here

Practice tables are tidy. Real exports are not.

Real public data

2,628 seismic events, 22,111 EPA/DOE fuel-economy records, and Census population estimates. Sources and licenses are on the datasets page.

Cleaning first

Every exercise teaches a real cleaning habit: spotting placeholders, telling blanks from NULLs, matching messy keys before you join.

SQL and spreadsheets

Each exercise shows how you'd answer the same question in Excel or Google Sheets, and you can download every table as CSV.

Private by design

The database runs in your browser through WebAssembly. No account, and your queries never leave your device.

Ready for your first rep?

Pick an exercise, write the query, and get graded on the real data.

Browse the 30 exercises