Skip to content
Practise SQL on real data

SQL Lab

Real Postgres runs in your browser with four practice databases: a food-delivery app, a UPI wallet, a cricket league and train bookings. Write the SQL, run it, and the lab checks your answer on a fresh copy of the data.

  1. 1Read the task and write your SQL.
  2. 2Run it as often as you like to see what comes back.
  3. 3Check it: the lab compares your result with the right one.
SQL playgroundRun any SQL on four practice databases and see how Postgres ran it.Open the playground

SQL from zero

Combining and summing

Changing data safely

Designing schemas

Making queries fast

Inside the database

Running databases

Beyond tables

Exercises for free lessons are open once you sign in; the rest are part of SDQ Pro.