Practise SQL online

Create your own example data and test a query. SQLite runs locally in your browser, so no database account or server setup is needed.

No account needed for browser-local experiments. Cloud saving is optional.

query.sql
CREATE TABLE products (name TEXT, price INTEGER);
INSERT INTO products VALUES ('Notebook', 120), ('Pen', 20);
SELECT name, price FROM products WHERE price >= 100;
Expected output
name      | price
Notebook  | 120

Real SQLite queries

Explore tables, filters, aggregates and relationships with small datasets.

Local execution

Your experiment uses an in-memory database in the browser.

Repeatable examples

Each run starts with a fresh database, making setup-and-query examples repeatable.

How to use this tool

  1. Open the SQL playground.

  2. Include CREATE TABLE and INSERT statements before your queries.

  3. Click Run and inspect the result tables or error message.

Limits and requirements

The dialect is SQLite, not PostgreSQL or MySQL. The database is reset for each run, and execution and result-size limits apply. It does not connect to your production databases.

Practice exercises

Browse SQL practiceSee all practice exercises

Frequently asked questions

Will my source be saved?

Local drafts stay in this browser’s storage. Export a ZIP or source file to keep a separate copy. Cloud saves need a configured account and are sent to the site’s database.

Does this use AI?

Running code in this playground does not call an AI provider.

Can I use real account credentials in sample code?

Use test data for experiments. Browser code, source exports, console messages, and debug reports can expose values you put in them.