I have a table structure like this:
employee
id int
manager_id int (the employee id of the manager)
name
...
awards
id int
employee_id int
points int (the award "value")
How can I find the manager whose staff (those who report directly to the manager) have collectively the most awards points?
Like this: