Return
manager_name: the name of the managerdepartment_name: the name of the manager's departmenttotal_reports: the total number of employees reporting (directly or indirectly) to the managerdepartment_name (A-Z), then manager_name (A-Z).Expected output
| manager_name | department_name | total_reports |
|---|---|---|
| 1 row — values hidden, that's the puzzle | ||
Your query should return 1 row with these columns. Your column aliases don't need to match.