On your own: the sales leaderboard

Your task In the code box, write a query that shows name, manager_id, sales (the sum of qty * unit_price over their shipped orders) and team_rank (RANK() by sales, highest first, inside the same manager_id), for every member of staff with at least one shipped order. Then press Run my code.

Getting the editor ready