QueryGym
Open app Get Pro

Get interview-ready in SQL.
One query at a time.

Practice real data-interview questions against a live database in your browser. Write SQL, hit check, get graded instantly. No setup, no signup.

Runs 100% in your browser · Real SQLite engine · 15 problems free

Practice the way interviews actually test you

Not multiple choice. You write the query, it runs against real data, and you find out immediately whether it's right.

⚡

Real database, instant grading

A full SQLite engine runs in your browser. Your query executes against real rows and is graded against the correct result set — not a keyword match.

🎯

The full interview surface

Joins, aggregation, subqueries, CTEs, window functions, and date logic across three realistic schemas: e-commerce, SaaS, and HR.

🧠

Spaced repetition

Miss one? It comes back at the right interval, so the patterns stick before your interview — not after.

💡

Progressive hints + solutions

Stuck? Reveal hints one at a time, then read a worked solution with an explanation of the approach and the gotchas.

🔒

Private by design

Nothing is uploaded. Your queries and progress stay in your browser. No account required to start.

📈

Track your progress

See what you've solved, what's left, and what's due for review. Build a streak toward interview day.

Every pattern interviewers reach for

Problems span easy warm-ups to hard window-function questions.

WHERE / filteringGROUP BY + HAVINGINNER / LEFT JOIN anti-joinssubqueriescorrelated subqueries CTEs (WITH)ROW_NUMBER / RANKrunning totals LAG / LEADtop-N per groupself-joins date / strftimeCASE + conditional aggregationCOALESCE / NULLs

Start free. Go Pro when you're serious.

15 problems are free forever. Unlock the full set, every solution, and spaced review.

Free
$0
  • 15 problems
  • Real in-browser grading
  • Hints
  • Progress tracking
Start free
Pro · best value
$39 one-time
  • All problems, forever
  • Every worked solution
  • Spaced-repetition review
  • Future problem packs included
Get lifetime access
Pro monthly
$6 /mo
  • All problems
  • Every worked solution
  • Spaced-repetition review
  • Cancel anytime
Subscribe

Questions

Are these real interview questions?

They're original problems written to mirror the patterns that data-analyst and data-engineer interviews test — joins, aggregation, window functions, and more. They are not copied from any company's question bank.

What SQL dialect is it?

SQLite, running in your browser via WebAssembly. The core concepts transfer directly to PostgreSQL, MySQL, Snowflake, and BigQuery.

Do I need an account?

No. You can start immediately. Your progress is saved in your browser's local storage. Pro is unlocked with a license key sent to your email after purchase.

Does my data leave my machine?

No. The database and grading run entirely client-side. Nothing you type is uploaded anywhere.

Your next SQL round starts now.

Open QueryGym — it's free →