01Chapter 1: Starting point: nested subqueries and why they get hard to readThis chapter assumes you can write basic SELECT, WHERE, and ORDER BY clauses. You should also know how to JOIN two tables and how to use GROUP BY with aggregate functions such as SUM and COUNT. Familiarity with subqueries helps but is not required.1 min read
02Chapter 2: Where a CTE name is visibleThis chapter assumes you know SELECT, WHERE, JOIN, and GROUP BY, and that you have read the earlier chapters on basic CTE syntax. The examples use PostgreSQL 12 or later.1 min read