Problem 570 · Medium

Managers with at Least 5 Direct Reports

Write a SQL query to report the names of all managers who have at least five direct reports, given an Employee table with a self-referencing managerId column.

Open the interactive visualisation