Concept Flow - Recursive CTE for hierarchical data
Start with base query
Anchor member: select root rows
Recursive member: join CTE to table
Combine results with UNION ALL
Repeat recursive member until no new rows
Final result: full hierarchy
The recursive CTE starts with root rows, then repeatedly joins to find child rows, combining all levels until no more children are found.