02Chapter 2: Making sure the recursion stopsThis chapter assumes you know SELECT, WHERE, JOIN, and basic CTEs. It also assumes you have seen the anchor and recursive members of a WITH RECURSIVE query. The examples use PostgreSQL syntax unless noted.2 min read
03Chapter 3: Graphs and cycle detectionThis chapter assumes you can write a recursive CTE with an anchor and a recursive member, use joins, and aggregate with GROUP BY. A graph can contain cycles, where an edge leads back to a node already visited. A recursive query over a cycle keeps producing rows unless you stop it.2 min read