Free · No signup · Runs in your browser
SQLPlayground runs a genuine SQLite engine via WebAssembly. Query realistic data, solve challenges from easy to hard, and design your own tables — everything executes locally, instantly.
SQLPlayground runs SQLite compiled to WebAssembly. Every query you type is parsed and executed by the same engine that powers billions of devices — errors, edge cases and all.
Design tables visually — columns, types (INTEGER, TEXT, DATE, BOOLEAN, DECIMAL and more), primary keys and constraints — with a live CREATE TABLE preview. Your tables are saved in your browser and survive reloads.
SELECT, INSERT, UPDATE, DELETE, JOINs, GROUP BY, HAVING, subqueries, CTEs, window functions, views, indexes — if SQLite supports it, you can practice it here.
Work through real problems on realistic data, from warm-up SELECTs to correlated subqueries and window functions. Every challenge has a hidden solution you can reveal when you're stuck.
Five related tables from the events industry — events, venues, organizers, attendees and ticket registrations — seeded with data designed to make JOINs and aggregations meaningful.
DROP a table, DELETE everything, experiment freely. One click restores the original data. Nothing leaves your browser — there's no server and no account.
A SQLite database boots in your browser in about a second, pre-loaded with five related tables of realistic event data.
Free-play in the editor with sample queries to learn from, or work through ten challenges of increasing difficulty.
Every query runs locally in milliseconds. Modify data, create tables, break things — one click resets the sandbox.
Start with simple SELECTs on friendly data and level up to JOINs and aggregations at your own pace.
Drill GROUP BY, HAVING, subqueries and window functions — the exact topics data and backend interviews test.
Sketch a query against sample tables before running it on production data at work.
Every student gets a full database in their browser tab — no accounts, no lab setup, nothing to install.
Yes. SQLPlayground runs sql.js — the actual SQLite engine compiled to WebAssembly — inside your browser. Queries are genuinely executed, not pattern-matched or simulated.
No. Open the editor and start writing SQL immediately. There is no account, no download and no configuration.
Yes. Use the visual table builder (or write CREATE TABLE yourself) with types like INTEGER, TEXT, DATE, BOOLEAN and DECIMAL. Tables you create are stored in your browser and restored on your next visit.
Everything SQLite supports: SELECT, INSERT, UPDATE, DELETE, JOINs, GROUP BY and HAVING, subqueries, common table expressions (WITH), window functions, views, indexes and more.
The sample database resets on every reload so you can experiment safely. Tables you create yourself are the exception — they're saved in your browser's local storage until you delete them.
No. SQLPlayground is completely free and runs entirely in your browser.
No signup. No install. Just SQL.
Open the editor