SQL practice online, with real data

Practice SQL with 72 free problems built on real IPL cricket, Formula 1 and UFC databases. Write queries in your browser, run them instantly and check your answer, from your first SELECT to window functions.

Start practicing SQL · Open the SQL playground

How SQL practice works here

  1. Pick a problem

    Start with the SQL Foundations track or filter by dataset, difficulty and topic.

  2. Write and run SQL

    Run queries against the real tables in your browser and see the results straight away.

  3. Submit and track progress

    Submit your answer to have it checked, then pick up where you left off next time.

Practice SQL on real sports databases

SQL practice questions, answered

Is SQLPractice free?

Yes. Every problem and the SQL playground are free. You only need an account to submit answers and save your progress.

Do I need to install anything to practice SQL online?

No. Queries run in your browser against the practice databases, so there is nothing to install or set up.

Which SQL topics can I practice?

Filtering, sorting, NULLs, aggregation with GROUP BY and HAVING, joins, subqueries, CTEs, window functions and gaps-and-islands problems.

Is it good for SQL interview practice?

Yes. Problems range from easy to hard and use realistic multi-table data, which is close to what analyst and data engineering interviews ask.

Which SQL dialect does it use?

SQLite. The SQL you write is standard and carries over to PostgreSQL, MySQL and other databases.