In SUM(x) OVER (ORDER BY d), the default window frame uses RANGE. What practical difference does that make compared with an explicit ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW?
ARANGE requires a PARTITION BY clause, whereas ROWS can be used over the whole table without one
BROWS ignores the ORDER BY, whereas RANGE sorts the partition before summing
CRows that tie on d are all included in the same running total under RANGE, while ROWS admits them one at a timeCorrect answer
DRANGE includes only the current row, whereas ROWS accumulates every preceding row in the partition
Correct answer
C. Rows that tie on d are all included in the same running total under RANGE, while ROWS admits them one at a time
A window frame defines which rows an analytic function sees; with ORDER BY and no explicit frame, the default is RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW. RANGE treats peers, rows with equal d, as one unit, so every tied row receives the same cumulative total, whereas ROWS CURRENT ROW advances row by row and gives tied rows different totals. Use ROWS when you need a strict row count and RANGE when ties should share a value, and remember that an explicit frame overrides the default.