Org chart
Walk down a tree: start at one row, then repeatedly join to the rows that point at it.
task
Every report of employee 1, direct or indirect, with depth (1 for direct reports): columns emp_id and depth.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
Walk down a tree: start at one row, then repeatedly join to the rows that point at it.
Every report of employee 1, direct or indirect, with depth (1 for direct reports): columns emp_id and depth.