Explain the duplicate-peers gotcha that the default RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW frame can cause.
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks what goes wrong with a SQL running total when the window uses the default RANGE frame and the ORDER BY key has ties. It tests understanding of peer rows, the difference between RANGE and ROWS frames, deterministic ordering, and related traps such as LAST_VALUE.