Learn SQL
Learn SQL on a real PostgreSQL database: build and change tables, filter and sort rows, summarize data with aggregate functions, and combine related tables with joins.
- Beginner level
- 4 modules
- 41 lessons
- 145 tasks and questions
Syllabus
01ManipulationMeet relational databases and the statements that build and change them: CREATE TABLE, INSERT, SELECT, ALTER TABLE, UPDATE, DELETE and constraints.10 lessons
02QueriesAsk precise questions of a single table: rename and compute columns, remove duplicates, filter with WHERE, LIKE, BETWEEN and IS NULL, combine conditions, sort, limit and label rows with CASE.11 lessons
03Aggregate FunctionsTurn many rows into one answer: count, add up, find extremes and averages, round results, and summarize groups with GROUP BY and HAVING.10 lessons
04Multiple TablesCombine related tables: understand primary and foreign keys, match rows with JOIN and LEFT JOIN, pair everything with CROSS JOIN, stack results with UNION, and name intermediate results with WITH.10 lessons