How do you calculate month-over-month and year-over-year growth in SQL with window functions?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how to compute month-over-month and year-over-year growth in SQL with window functions such as LAG. Tests aggregation to one row per period, the growth formula, division by zero and integer division, and handling of months that have no data.