Practice SQL like it's an interview. On your phone, offline.
Query Belt gives you short SQL tasks, a real SQLite engine on your device, mock interviews and answer checks that explain what went wrong. No account, no ads.
- Works offline
- No sign-up
- No ads
- Android
Answer checks you can trust
Query Belt compares the rows your query returns with the rows of a reference answer. It never compares the text of your query, so a different but correct way of writing it passes. When it does not match, you see what is missing or extra and the likely reason, instead of a bare "wrong".
Expected
| department | employees |
|---|---|
| Engineering | 4 |
| Sales | 3 |
| Support | 2 |
Your result
| department | employees | |
|---|---|---|
| + extra | NULL | 1 |
| Engineering | 4 | |
| Sales | 3 | |
| Support | 2 |
Not a match yet. Expected 3 rows, you returned 4. Likely reason: a LEFT JOIN keeps employees who have no department, so an extra NULL group appears.
Illustration built from a real query run on a sample database. The wording inside the app can differ.
- Row order is ignored unless the task asks for a sort.
- Reference answers are tested on several datasets, so hard-coded answers do not pass.
- Rules such as inclusive BETWEEN and NULL in NOT IN are explained where they matter.
Seven belts, from SELECT to window functions
The path has 180 tasks and 36 short lessons in seven stages. A belt marks your progress inside the app. It is not a certificate or a qualification.
- White belt
SELECT, WHERE, ORDER BY, NULL basics - Yellow belt
Aggregates, GROUP BY, HAVING, CASE - Orange belt
JOINs and set operations - Green belt
Subqueries, EXISTS, CTEs - Blue belt
Window functions - Brown belt
Interview patterns: dedupe, gaps and islands - Black belt
Data changes, indexes, query plans
Mock interviews
Pick a role (Data Analyst, Backend or BI) and a length. You get a timer, no hints and one submit per task. The report shows what you solved, how long each task took and a map of weak topics that feeds your review list. The score is practice feedback, not a prediction of a real interview.
See what the database does
Query Plan Lens
Turns EXPLAIN QUERY PLAN into plain language: reads the whole table, or uses an index. Create an index in the sandbox and compare the plan before and after.
Why is it empty?
If a query returns nothing, the app loosens conditions one at a time and shows the step where your rows disappeared.
Typing SQL on a phone
A snippet bar sits above the keyboard with keywords and symbols, and suggestions come from the schema of the current database. Autocorrect is off.
Free and Pro, plainly
The free part is a real product: 40 tasks, 8 lessons, the full sandbox, row-by-row checks and one mock interview. Pro unlocks the rest. You can see which tasks are Pro from the first day, and there are no ads. See exactly what is included.
Who it is for
Interview candidates
Analysts, BI developers, backend developers and QA engineers who need SQL under time pressure.
Students and beginners
Start at the white belt with short lessons and a first hint on every task.
Working developers
Refresh window functions and CTEs, or check a query in the sandbox.
Five spare minutes
Daily query and a gentle streak that never punishes a missed day.
Free SQL guides on this site
- SQL cheat sheet: syntax, JOINs, NULL, window functions and dialect differences, with results from real queries.
- SQL interview questions: questions with worked answers by topic: JOINs, window functions, NULL and GROUP BY.
Quick answers
Does Query Belt work offline?
Yes. The SQL engine, the practice databases, the tasks and the lessons are all on your device, so you can use the app in airplane mode. Buying Pro needs Google Play, so that one step needs a connection.
Do I need an account?
No. There is no sign-up and no login. Your progress stays on your device.
Which SQL does it use?
The app runs SQLite, bundled inside the app so it behaves the same on every phone. SQLite differs from PostgreSQL, MySQL and SQL Server in places such as LIMIT versus TOP and string concatenation. The differences that matter in interviews are marked in the lessons and on the cheat sheet on this site.
Ready to try it?
Coming to Google Play