Analytic functions analyze a window of data. A window is a user-specified selection of rows (or a logical partition of a query that determines the set of rows) used to do certain calculations for the current row. Using windowing you can determine ranking, distribution of values, or moving averages and sums.
Framing can be either row-based or range-based. Framing can specify anchored or floating frame endpoints. If the frame is anchored, you can specify unbounded preceding or unbounded following. If the frame is floating, you can specify an absolute row offset (for row-based frames) or as a delta from the order column value (for range-based frames) of the current row.
The frames for functions in the Window Aggregation family can also specify an exclusion as: exclude no others, exclude current row, exclude ties, or exclude group. For details about which functions support the exclude clause in syntax, see Netezza SQL analytic functions.