Explain how to calculate running totals or cumulative sums using window functions.
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how to compute a running total or cumulative sum in SQL with window functions, including restarting it per group. Tests understanding of PARTITION BY, ORDER BY, the default window frame, and how ROWS and RANGE treat tied values.