Practise on the real thing.
Real tools in your browser, with data to work on and nothing to install. One account opens every playground.
2 rowsResult 1
| topic | total |
|---|---|
| joins | 65 |
| window functions | 30 |
CREATE TABLE practice
(topic text, minutes int);
INSERT INTO practice VALUES
('joins', 25), ('joins', 40),
('window functions', 30);
SELECT topic, sum(minutes) AS total
FROM practice GROUP BY topic
ORDER BY total DESC;SQL PlaygroundPostgreSQL 18a query in My database

The real thing, in your browser
- A real engine
- Not a simulator: the SQL Playground runs PostgreSQL 18. Your work meets the real engine, error messages and all.
- Nothing to install
- Everything runs in your browser, on any computer. Your query tabs are saved to your account, so they follow you.
- A private database of your own
- Next to the shared practice tables, My database runs in your browser: create tables and change rows, and nobody else sees them.
Line 1Failed
[42803]column "practice.topic" must appear in the GROUP BY clause or be used in an aggregate function
At line 1, column 8
PostgreSQL's own words, for a query it won't run.
Playgrounds
Each one runs real software with data to work on. One account and one code open every playground.
All playgroundsSQL Playground
PostgreSQL 18, in your browser
Write real queries on a real PostgreSQL database, from your first SELECT to window functions, CTEs and JSON. Shared practice tables to query, and a private database of your own.
- Shared practice tables
- Your own private database
- A real editor
- Schema explorer
- Run history
- Download results

Think in SQL
Learn SQL from Zero to Hero with Datasets and an Enterprise-Level Practice Website, by Kapil Dev V.
Every listing the book prints runs in the SQL Playground, numbered as in the book. The code printed inside gives 180 days of access, free.
One price per seat
A code costs for 3 months, 18% GST included. A group code for a class takes off every seat.
See pricingHave a code? Start now.
Create your account with the code from Think in SQL, or one you buy. Your time starts the day you sign up.
Need help?
Email help@kdvtutors.org or send us a message. We acknowledge every message within 48 hours.






