Actual PostgreSQL
Commands run against a sandbox PostgreSQL instance.
A lite SQL playground on real Postgres. Practice JOINs, CTEs, and window functions—no local install.
It will inspect your code, think, and propose changes you can Keep or Discard inline.
A lite SQL playground on real Postgres. Practice JOINs, CTEs, and window functions—no local install.
Write SELECT, JOIN, CREATE TABLE, CTEs, and window functions against real PostgreSQL—not SQLite dressed up as PG. Sanity-check interview SQL, EXPLAIN plans, and migrations before staging. Sandbox sessions may reset; save titled snippets for queries you teach or reuse.
Commands run against a sandbox PostgreSQL instance.
Run a query and read the output in the panel underneath.
No Docker image, no cloud account, no PostgreSQL install on your machine.
Try CRUD, joins, or shell syntax before an interview or a prod change.
Bookmark a useful query by saving it with a title.
Data can reset between sessions. Not for production workloads.
Start from the users/orders JOIN template, or paste your own queries.
Result grids or errors appear in the output panel.
CREATE TABLE, indexes, and inserts work inside the sandbox.
Practice WITH clauses, ROW_NUMBER, and EXPLAIN before prod.
Keep a permalink for queries you reuse or share.
CREATE TABLE users (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL
);
CREATE TABLE orders (
id SERIAL PRIMARY KEY,
user_id INT REFERENCES users(id),
total NUMERIC(10,2)
);
INSERT INTO users (name) VALUES ('Ada'), ('Bob');
INSERT INTO orders (user_id, total) VALUES (1, 42.00), (1, 18.50), (2, 9.99);
SELECT u.name, SUM(o.total) AS spent
FROM users u
JOIN orders o ON o.user_id = u.id
GROUP BY u.name;WITH ranked AS (
SELECT user_id, total,
ROW_NUMBER() OVER (PARTITION BY user_id ORDER BY total DESC) AS rn
FROM orders
)
SELECT * FROM ranked WHERE rn = 1;EXPLAIN ANALYZE
SELECT u.name, o.total
FROM users u
JOIN orders o ON o.user_id = u.id
WHERE o.total > 10;Yes. No payment and no account required for a quick run. Sign in if you want saves tied to your profile.
No. Code runs on Codeground servers in a sandbox. Just open the page.
Postgres in a sandbox — sessions may reset.
Save with a title to get a permalink, or share the playground URL as-is.
Yes. Share a ground link, or use interview mode for a live shared editor.
This page is for single-file snippets. Use a cloud workspace for full projects.
Anonymous sessions can reset. Save with a title (and sign in) for a stable link.
Good for quick tests, learning, and sharing a snippet. For large offline work, a local IDE still wins.
A browser playground with syntax highlighting and one-click Run — run PostgreSQL online without a full local install. Cloud workspaces cover multi-file projects.
Yes. Run Postgres SQL online for free—no psql, Docker, or postgres.app required for practice.
DBeaver connects to your real databases with full admin tooling. This is a lite SQL playground for learning JOINs, CTEs, and EXPLAIN without standing up a server.
Yes. Multi-table JOINs, WITH clauses, ROW_NUMBER / RANK, and aggregations all run on real Postgres.
Yes. Run EXPLAIN or EXPLAIN ANALYZE on sandbox queries to inspect plans before you touch staging.
Sessions can reset. Not production storage—save titled snippets for lasting query templates.
Yes. Drill JOINs, CTEs, and window functions in a free online Postgres playground before take-homes.