Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try to get all the mangerIDs that have count bigger than 5
Use the last hint's result as a table and do join with origin table at id equals to managerId
This is a very good example to show the performance of SQL code. Try to work out other solutions and you may be surprised by running time difference.
If your solution uses 'IN' function and runs more than 5 seconds, try to optimize it by using 'JOIN' instead.