Window aggregate functions allow aggregate calculations over a "window" of rows defined by the OVER clause. This allows aggregates to be calculated for each row without grouping, providing more detail. The document provides two examples: 1) Using window functions to calculate a grand total and customer total for each order. 2) Using a window frame to calculate a running total that accumulates values within each customer partition up to the current row. Window functions add flexibility over regular aggregates by allowing per-row calculations over a window of rows.
Related topics: