Write real SQL against a sample database and run it instantly — right here in your browser, no signup and no setup. Work through 13 interview challenges from a simple SELECT up to window functions, and check your answers as you go.
Most SQL practice sites make you sign up, install a database, or watch your query disappear behind a paywall. This playground does none of that. A full SQLite database runs locally in your browser tab (via WebAssembly), so you can write a query, press Run, and see results instantly. Nothing you type leaves your machine.
The sample database models a small company and an online store, which is exactly the shape of data most SQL interview questions use: employees and departments for joins and aggregation, and customers, orders, products and order_items for multi-table revenue questions.
WHERE, ORDER BY, LIMITINNER JOIN, LEFT JOIN, and self-joins (an employee to their manager)GROUP BY, HAVING, and aggregate functions like COUNT, SUM, AVGRANK() OVER (PARTITION BY …)strftimePick a challenge on the right, hit Try it to load the prompt into the editor, and write your query. When you run it, the playground checks your result against the expected answer and marks the challenge solved if it matches. Stuck? Every challenge has a Show solution button. Broke the data with an UPDATE or DELETE? Hit Reset data to restore the sample database.
When you're ready for the theory behind these queries, read the SQL interview questions guide, or take a break and try the Guess the Big O game.
Yes — completely free, no signup, and it runs entirely in your browser. Nothing you type is sent to a server.
It uses SQLite compiled to WebAssembly (sql.js). A real SQL engine runs inside your browser tab, so queries execute locally and instantly.
SQLite. Almost all standard SQL you'd write in an interview works identically; a few functions such as strftime for dates are SQLite-specific.