Practice SQL interview questions

48 real interview-style questions, graded instantly on a real Postgres engine that runs in your browser. Plus a free SQL tutorial, seven sample databases and an online SQL sandbox.

Real Postgres engine

Your query runs on actual Postgres (PGlite) in the browser and is graded column by column, not string-matched.

Interview-shaped

Joins, window functions, CTEs, dates and messy data, the patterns that decide SQL interviews.

No setup

No install, no database server, no signup for the free content. Open a page and run SQL.

Practice SQL by topic

Pick the pattern you want to drill. Every topic page lists its questions with difficulty and the lessons that teach it.

By difficulty

Free SQL practice problems

Start with these free labs. No signup needed.

Classic SQL interview questions

Free SQL tutorial

29 short lessons from SELECT to recursive CTEs, each with examples you can edit and run.

See all 29 lessons

Sample databases for SQL practice

Seven realistic schemas you can query for free in the online SQL sandbox.

FAQ

Is the SQL real?

Yes, it runs on a real Postgres engine, so edge cases behave like production.

What is free?

The full SQL tutorial, concept cards, the sandbox, and a handful of preview labs. A license unlocks every practice lab.

Do I need an account?

A license key signs you in and unlocks the Pro labs. Free content works with no signup.

Which formats are covered?

Online screens, take-homes, live coding, and concept cards.