Practice SQL on data from the job you do
Write real queries on tables from your own field: invoices for finance, campaigns for marketing, tickets for support. A real SQLite database runs in your browser, runs every query and shows you exactly what differs from the expected result.
Free, no sign up. Works on a phone, better on a laptop.
Pick your job, get your tables
The skills are the same for everyone. The data and the requests are not: you practice on the tables you would see at work, and the requests read like messages from your manager.
- Data analystRequests from every team, so every task uses another table.
- FinanceCustomer invoices: amounts, due dates, overdue and paid.
- MarketingAd campaigns: channels, spend, signups, start and end dates.
- HREmployee records: departments, locations, salaries, hire dates.
- SalesDeals in a CRM: accounts, reps, stages, amounts.
- ProductApp users: plans, devices, sessions, signups, cancellations.
- OperationsWarehouse shipments: products, carriers, quantities, delivery.
- SupportSupport tickets: channels, priority, response time, closing.
How the practice works
- Learn step by stepEach level starts with a short lesson. You build one query piece by piece and see the result after every step.
- Practice without endThen the tasks never run out: a new table, new values and a new request each time, from easy to harder.
- See what went wrongYour result and the expected result appear side by side. Matching rows turn green, extra rows red, missing rows are marked.
- Switch to your databaseOnce the basics sit, practice the syntax of SQL Server, Oracle, PostgreSQL or Snowflake.
From the first SELECT to window functions
Six modules in order. Each level has a step by step lesson, endless practice and a guide.
- One tablePick columns, filter rows, sort and cut: the queries you write every day.4 levels
- SummariesCount, add up and average, per group and with group filters.3 levels
- JoinsCombine two tables: matching rows, missing matches, totals per name.3 levels
- FunctionsLabels with CASE, blanks with COALESCE, text and dates.3 levels
- Subqueries and CTEsQueries inside queries, and long queries as named steps.2 levels
- Window functionsRanks, running totals and comparisons with the row before.3 levels
Then the dialect of your company
Most of SQL is the same everywhere. The rest (how to take the top rows, fill empty values, add days to a date) differs by database. These tracks cover exactly that.
Why practice on data from your own job?
A query about invoices reads very differently to an accountant than a query about “table A” and “column x”. When the data looks like your work, you remember the pattern and you recognise the moment to use it.
The requests in the tasks are written the way colleagues ask: “Can you pull every overdue invoice over $5,000?” Turning that sentence into SQL is the real skill.
Is the checking real?
Yes. Every task runs on a real SQLite database inside your browser. Your query is executed, and its result is compared with the result of a reference query on the same rows. Any query that returns the right rows counts, so you can solve a task your own way.
Nothing is sent to a server, and your progress is saved only in your browser.
From the blog
- SQL for finance teams: the queries you will actually writeThe handful of SQL patterns that cover most finance requests: filters, totals per group, joins to customer data and aging buckets with CASE.
- SQL Server, Oracle, PostgreSQL and Snowflake syntax differencesThe same query in four databases: top rows, empty values, joining text, case insensitive search and date math, side by side.
- How to practice SQL for a data analyst interviewThe SQL topics that come up again and again in analyst interviews, and a simple way to practice them until they are automatic.
Questions people ask
Is SQL Practice free?
Yes. All lessons, practice tasks and guides are free, and you do not need an account.
Do I need to install a database?
No. A real SQLite database runs inside your browser. Open a task and start typing.
I have never written SQL. Where do I start?
Start with “Start from zero”: the first lesson builds a query one step at a time, and every next step tells you exactly what to type until you no longer need it.
Which database does it teach?
The main track is standard SQL that works almost everywhere. The dialect tracks then cover SQL Server, Oracle, PostgreSQL (also good for Amazon Redshift) and Snowflake.
Can I practice on my phone?
Yes. There are keys for SQL words and column names, so you type very little. On a laptop the practice looks like a database client, with the tables on the left and the results below the editor.
Where is my progress saved?
In your browser only. If you switch devices or clear your browser data, the progress starts again.
Ten minutes a day is enough. Pick your job and write your first query.
Start practicing