How do you compute moving or rolling averages in SQL using window functions?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how to compute moving or rolling averages in SQL with window functions. Tests the frame clause, the difference between ROWS and RANGE frames, and how missing dates and partial early windows change the result.