Recursive CTEs: SQL’s Hidden Graph Traversal Engine

A practical guide to navigate hierarchies, find routes, detect cycles and calculate degrees of separation