Boss: team cost roll-up
Teams nest through parent_team_id. A team's cost includes every team below it.
task
Total salary per team including all its sub-teams: columns root (the team id) and the salary sum.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
Teams nest through parent_team_id. A team's cost includes every team below it.
Total salary per team including all its sub-teams: columns root (the team id) and the salary sum.