Skip to content
Quantoros

What is the difference between ROWS and RANGE in window frame clauses?

SQLLevel: AdvancedWindow Functions Advanced

What is the difference between ROWS and RANGE in window frame clauses?

Hints
  • Which rows belong to the partition and frame for each current row?
  • Check ordering, ties, frame boundaries and the difference from GROUP BY.

Answer

This answer is part of mentoring

Advanced questions come with a full breakdown and a mock interview with a working quant researcher. The first call is free.

Source and licence: SQL Interview Questions — Arda Kocadoru · MIT

Related questions