Organizational health is often monitored by looking at management spans of control. You need to identify managers who have a high number of direct reports.
Write an SQL query to report the managers who have at least five direct reports.
| id(INTEGER) | name(VARCHAR) | department(VARCHAR) | managerId(INTEGER) |
|---|---|---|---|
| 101 | John | A | null |
| 102 | Dan | A | 101 |
| 103 | James | A | 101 |
| 104 | Amy | A | 101 |
| 105 | Anne | A | 101 |
| 106 | Ron | B | 101 |
| name(VARCHAR) |
|---|
| John |