How does the ORDER BY clause within a window function affect the output?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how an ORDER BY inside a SQL window function changes what ranking functions and aggregates return. Tests your grasp of default window frames, running totals, ties in the ordering column, and how the window ORDER BY relates to sorting the final output.