次の例は、各地域の売上げ上昇の全期間の累積売上げを検索します。
SUM(sales) OVER ( PARTITION BY region ORDER BY day_of_calendar RESET WHEN sales < /* preceding row */ SUM(sales) OVER ( PARTITION BY region ORDER BY day_of_calendar ROWS BETWEEN 1 PRECEDING AND 1 PRECEDING) ROWS UNBOUNDED PRECEDING )