Active recall, every drill
You never watch a solution being typed. Each exercise gives you a business question and an expected result, and you produce the query.
Runs 100% in your browser · no signup
Interactive SQL exercises built on real business questions. Write a query, hit run, and see exactly which rows match. Practice SELECT, JOINs, GROUP BY and window functions until they're muscle memory.
SELECT name, email FROM customers WHERE country = 'Canada' AND active_status = 'active' ORDER BY name;
Most people who "learned SQL" from a video course freeze when handed a blank editor. Watching is recognition; writing is recall. Learning research consistently finds that retrieval practice, actively producing an answer, builds far more durable skill than re-watching or re-reading. SQLExercises is built entirely around that loop.
You never watch a solution being typed. Each exercise gives you a business question and an expected result, and you produce the query.
Your query and the reference solution run side by side in an in-browser database. Wrong rows light up red, with a hint about which clause to check.
No Postgres install, no Docker, no sample-data download. Open the page and start typing. Five minutes on a coffee break counts.
| Typical video course | SQLExercises | |
|---|---|---|
| Time to first query | 45+ minutes of setup videos | Under 10 seconds |
| How you learn | Watching someone else type | Writing every query yourself |
| Feedback | None, or a quiz at the end | Instant row-by-row diff |
| Setup | Install a DB server and client | Nothing: runs in your browser |
| Session length | 40 hours, start to finish | 5-minute drills you can stack |
Each drill opens with a 30-second explanation and a tiny example, then a realistic request from marketing, finance or product.
A full SQL editor with autocomplete for table and column names. Press Ctrl/⌘ + Enter to run.
Wrong cells are highlighted and the feedback names your likely mistake. Hints come one at a time, and the solution unlocks after 3 tries.
From your first WHERE clause to the window-function questions interviewers love.
Module 1
Module 2
Module 3
Module 4
$0
$39 once
Every day one Pro drill is free for everyone. Get it in your inbox and keep your streak going in five minutes a day.
No. SQLExercises runs real PostgreSQL, compiled to WebAssembly, inside your browser. There is nothing to install, no account to create, and your queries never leave your machine.
Video courses teach by showing. We teach by making you write the query. Every drill is a realistic business question with a target result, and you get instant feedback on exactly which rows and columns are wrong.
Yes. The Interview Drills and Analytics Patterns modules cover what data, analytics and backend interviews test: window functions like DENSE_RANK and LAG, recursive CTEs, retention cohorts, sessionization, gaps and islands, and tricky NULL handling.
PostgreSQL, the dialect most data and analytics interviews use. Everything you practice (SELECT, JOINs, GROUP BY, HAVING, window functions, CTEs, date math) transfers directly to Snowflake, Redshift and BigQuery, and mostly to MySQL.
Lifetime access to every Interview Drill and Analytics Pattern for a one-time $39 payment. No subscription, and all future modules are included.