Explain the default frame for ordered versus unordered SQL window functions and why the default matters
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks what frame a SQL window function uses by default with and without ORDER BY, and why that default changes results. Tests running totals versus group totals, how ROWS and RANGE treat tied rows, the LAST_VALUE trap, and when to write the frame explicitly.