Five self-contained tutorials. Every query runs live in the browser via WebAssembly. Edit the SQL and re-run. No server required.
Design a project-management schema with tasks, labels, and
assignments. Covers SERIAL, foreign keys,
CHECK constraints, ON CONFLICT
upserts, and RETURNING.
Build a sales pipeline and slice it with aggregation,
window functions, ROLLUP/CUBE,
and reusable views. Rank reps, compute running totals,
and generate subtotal rows.
Model sensor readings with timestamps and intervals.
Use DATE_TRUNC, EXTRACT,
AGE, TO_CHAR, recursive CTEs
to fill date gaps, and window frames for moving averages.
An e-commerce schema with users, orders, items, and products.
Walk through INNER, LEFT,
RIGHT, FULL, CROSS,
and NATURAL joins, plus correlated subqueries
and EXISTS.
Start with a v1 schema and evolve it: add columns, rename
fields, change types with CAST/::,
and wrap migrations in transactions with nested
BEGIN/COMMIT.