Compute each salesperson's share of company and team sales in one query with window functions
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how to show each salesperson's share of total company sales and of their own team's sales side by side in a single SQL query. Tests understanding of aggregate window functions, partitioning, and safe division when computing percentages in SQL.