Windowing agg
Definition
Window aggregate functions (aka window functions or windowed aggregates) are functions that perform a calculation over a group of records called window that are in some relation to the current record (i.e. can be in the same partition or frame as the current row).
Parameters
-
Partition by (+add):
- Def: Specify the column for grouping.
-
Order by (+add):
- Def: Specify the column for ordering.
-
Window size with:
- Def: Specify the minimum and maximum for the windowing.
- Range:
- The Range parameter puts a number of constraints on the ORDER BY expressions: there can be only one expression and this expression must have a numerical data type (integer/float/double).
- Rows:
- Start
- End
-
Function:
- Def: Specify the function to use.
-
On column:
- Def: Specify the column to use for function.
-
Column output:
- Def: Specify the name of the column.
Additionnal Comments
Functions:
-
count:
- Def: Count the element in the Column input for each group.
Link to the Count page.
- Def: Count the element in the Column input for each group.
-
sum:
- Def: Sum all the element of the Column input for each group.
Link to the Sum page.
- Def: Sum all the element of the Column input for each group.
-
avg:
- Def: Returns the average of the Column input for each group.
Link to the Average page.
- Def: Returns the average of the Column input for each group.
-
mean:
- Def: Returns the mean of the Column input for each group.
-
var:
- Def: Returns the variance of the Column input for each group.
Link to the Var page.
- Def: Returns the variance of the Column input for each group.
-
std:
- Def: Returns the standart deviation of the Column input for each group.
-
max:
- Def: Returns the maximum value of the Column input for each group.
Link to the Max page.
- Def: Returns the maximum value of the Column input for each group.
-
min:
- Def: Returns the maximum value of the Column input for each group.
Link to the Min page.
- Def: Returns the maximum value of the Column input for each group.