Study guide

Curriculum

Follow the 5 stages in order — all 18 parts are ready — then pick exactly one Stage 5 track.

Start learning

Stage 1 Stage 1: Foundation

Install PostgreSQL, drive psql, and answer business questions from one table. · 4 parts · 2 weeks
01Getting startedYou will be able to: Install PostgreSQL, drive psql, load shopdb~1.5 h02Reading dataYou will be able to: Filter, sort, de-duplicate and page one table~1.5 h03Types, NULL and functionsYou will be able to: Pick the right types, tame NULL, use the built-in functions~1.5 h04Summarising dataYou will be able to: GROUP BY, HAVING and FILTER — many rows into answers~1.5 hPThe store sales reportStage project — build it after Part 4project

Stage 2 Stage 2: Intermediate

Join tables, structure hard questions with subqueries and CTEs, and write window-function analytics. · 4 parts · 2 weeks
05Joining tablesYou will be able to: Join any number of tables and predict the row count~2 h06Subqueries, CTEs and set operationsYou will be able to: Structure hard questions as steps, and dodge the NOT IN trap~2 h07Window functionsYou will be able to: Rankings, running totals and neighbour comparisons without collapsing rows~2 h08Analytics patternsYou will be able to: Top-N, growth, cohorts, funnels, streaks, medians, pivots, subtotals~2.5 hPThe customer analytics packStage project — build it after Part 8project

Stage 3 Stage 3: Advanced

Design schemas with constraints, write data safely, reason about transactions, and use JSONB and search. · 6 parts · 2 weeks
09Data modelingYou will be able to: Turn requirements into a 3NF design with the right keys~2 h10Building schemas (DDL)You will be able to: Enforce every rule with named, violation-tested constraints~2.5 h11Changing data (DML)You will be able to: Write, upsert, merge and bulk-load safely, with receipts~2.5 h12Transactions and concurrencyYou will be able to: Reason about MVCC, isolation, locks, queues and deadlocks~2.5 h13Reusable logicYou will be able to: Views, matviews, recursion, functions, procedures, triggers~2.5 h14Semi-structured data and searchYou will be able to: Arrays, JSONB, SQL/JSON, full-text and fuzzy search~2.5 hPThe booking systemStage project — build it after Part 14project

Stage 4 Stage 4: Performance & internals

How Postgres works inside — then plans, indexes, and a method for slow queries. · 4 parts · 2 weeks
15How PostgreSQL works insideYou will be able to: Explain pages, WAL, MVCC bloat, VACUUM and planner statistics~2.5 h16Reading query plansYou will be able to: Read EXPLAIN ANALYZE and catch bad estimates at the root~2.5 h17IndexingYou will be able to: Design composite, partial, expression, covering and specialist indexes~2.5 h18Query tuningYou will be able to: Find the worst queries and fix them with a method~2.5 hPTune ItStage project — build it after Part 18project

Stage 5 Stage 5: Specialization

Pick one career track and ship a portfolio capstone. · 4 tracks · 4–6 weeks
AAI & Modern PostgreSQLPick one track — a guided brief ending in a capstonetrackBBackend EngineerPick one track — a guided brief ending in a capstonetrackCData Analyst & Analytics EngineerPick one track — a guided brief ending in a capstonetrackDDatabase Administrator & PlatformPick one track — a guided brief ending in a capstonetrack

Search the guide