Reading preferences

All modules

Available

Databases and SQL with PostgreSQL

Understand relational data, SQL, and PostgreSQL through clear, prepared examples.

Levels indicate concept complexity and prerequisites, not learner progress.

Beginner

  1. Tables, Keys, and Missing Values — Read a relational table and distinguish a key from a missing value.
  2. Reading Data with SELECT — Filter, order, rename, and limit rows in a prepared PostgreSQL query.
  3. Changing Rows and Using Transactions — Follow inserts, updates, deletes, and a rollback using fictional data.

Intermediate

  1. Relationships, Constraints, and Normalisation — Connect books to authors while protecting the relationships between records.
  2. Combining Tables with Joins — Compare matching rows with an outer join that retains unmatched books.
  3. Grouping and Aggregating Rows — Summarise books by author without confusing missing values and empty groups.
  4. Asking Questions with Subqueries — Use an inner query to compare each book with the average known page count.
  5. Reusable Queries with Views — Follow a view as its underlying rows change inside a transaction.
  6. Transactions and Consistent Changes — Follow a two-account transfer through commit and reason about failure.

Advanced

  1. Indexes and Their Trade-offs — Understand when an index can help and what it costs to maintain.
  2. Reading and Measuring Query Plans — Read a plan as an estimate and measure carefully before tuning.
  3. Structuring Queries with CTEs — Name intermediate query results without assuming a fixed execution strategy.
  4. Window Functions and Ranking — Rank rows within groups while preserving individual rows.
  5. JSONB and PostgreSQL-Specific SQL — Distinguish missing JSON keys from JSON null and SQL NULL.
  6. MVCC and Transaction Isolation — Compare statement and transaction snapshots through a prepared two-session schedule.
  7. Roles and Least-Privilege Access — Separate object permissions and understand the limits of a revoke.
  8. Backups and Recovery Verification — Distinguish an archive from a tested recovery process.

Expert

  1. Locks, Deadlocks, and Safe Retries — Trace a wait-for cycle and recover safely from a failed transaction.
  2. Isolation Anomalies and Write Skew — See why stable snapshots do not automatically protect cross-row rules.
  3. Tuning Queries Against a Workload — Evaluate a candidate index using representative reads and writes.
  4. Partitioning and Pruning — Route date ranges and evaluate partition pruning and its trade-offs.
  5. Replication Lag and Failover — Follow a committed change across an asynchronous standby failure.
  6. Recovery Testing and Data Integrity — Compare a restored point with independent integrity expectations and recovery objectives.