Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • It could be arbitrary number of rows e.g. 100 or there could be no ROWS BETWEEN at all. The values do not matter, one can post the output that proves that SUM was calculated for each row in window based on the rows inside and outside the window. Commented Nov 20, 2019 at 10:15
  • This is interesting problem. Definitely not easy when the window size is arbitrary and not just 3 rows. Commented Nov 25, 2022 at 0:07
  • Despite you calling it a "running sum" it is in no sense a running sum because you aren't just adding something to the previous total Commented Aug 28, 2023 at 3:24