The Employee
table holds all employees including their managers. Every employee has an Id, and there is also a column for the manager Id.
1 | +------+----------+-----------+----------+ |
Given the Employee
table, write a SQL query that finds out managers with at least 5 direct report. For the above table, your SQL query should return:
1 | +-------+ |
Note: No one would report to himself.
1 | # Write your MySQL query statement below |