Skip to main content
SQL Senior (5–8 yrs) Coding Frequent SQL recursive CTE hierarchical data WITH RECURSIVE PostgreSQL

Write a recursive CTE to traverse a hierarchical parent-child table.

sql-sen-002

Your answer

Answer as you would in a real interview — explain your thinking, not just the conclusion.

Log in to save progress.