Free · no sign-up

SQL Playground

Practise SQL with a real SQLite database that runs right in your browser. Explore a store's sales data, try the 26 exercises, or import your own CSV file.

Take the free SQL course →
Loading the SQL playground…
It needs JavaScript and a modern browser. If it doesn't appear, reload the page.
Avro Academy SQL Playground
Loading the database…

How the playground works

  • Write a query and press Run (or Ctrl/⌘ + Enter). Select part of the text to run just that part.
  • It's real SQLite, running inside your browser. Nothing you type is sent anywhere.
  • Your queries save automatically on this device and browser, until you clear them. Use Export to keep a copy or move to another computer.
  • Changes to the data (new tables, imported CSV files, updates) are saved on this device too. Reset sample data puts the original data back. Your query tabs are kept.
  • Import a .sql file (runs it), a .sqlite/.db database (opens it), or a .csv file (becomes a new table).
  • Exercises check your answer by comparing your results with the model answer. Column names don't matter.
  • Press Ctrl + Space to suggest table and column names.

The sample data is a made-up online homewares store, Harbour & Home. Learn with it in the free course SQL for Data Analysts.

Real SQLiteThe same SQL you'd use at work: joins, CTEs, window functions and more.
PrivateEverything runs on your device. Nothing you type is sent anywhere.
Saved for youYour queries stay in this browser until you clear them.
Export anythingDownload your queries (.sql), results (.csv) or the whole database.

The sample data is Harbour & Home, a made-up online homewares store. New to SQL? Start with the free course SQL for Data Analysts — every lesson links back here.