Free SQL tutorial

SQL guides with examples you can run

Every guide explains one SQL concept in plain English, shows the syntax, and gives you examples to run on a real PostgreSQL database right in the page. Then a short challenge checks that you've got it.

Basics

Filtering

Sorting

Aggregation

Joins

Advanced queries

Functions

Window functions

Changing data