Concept Flow - Recursive CTE for hierarchical data
Start with anchor query
Anchor rows selected
Recursive query references CTE
Join with base table to find children
Add new rows to CTE result
Check if new rows found
Repeat
Final hierarchical result
The recursive CTE starts with base rows, then repeatedly finds child rows by joining with the base table until no more children are found, building the hierarchy step-by-step.