A Stepshala publication

SQL & Postgres,
Step by Step.

Learn SQL and PostgreSQL against one small store database, with every output captured from a real run. All five stages are complete — 18 parts from first queries through performance tuning, plus four career tracks.

Part 1 · Getting started

Stage 1 · FoundationFig. 02

A database cylinder with stacked layers, one row highlighted, and a query result card beside it.
Part 02Reading data

How to use this guide

Study one part at a time: read the lesson with psql open beside it, run the examples, solve the exercises, then move on.

New here? See how every part is organised and how to study — Stage 1 overview

Five stages

Foundation through specialization, in order.

Practice and reference

Build the stage project, then keep the one-page guide and the practice database close by.

Search the guide