← Quiz: Window Frames: all 10 questions
Quiz: Window Frames · Question 3 of 10
With ORDER BY and no frame clause, what is the default frame?
With ORDER BY and no frame clause, what is the default frame?
- A.ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING
- B.The whole partition
- C.Only the current row
- D.RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
Answer & explanation
Correct answer: RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
This default is what makes SUM() OVER (ORDER BY …) a running total.
Can you get the rest right without peeking?
Take the timed Quiz: Window Frames quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →