Function |
Description |
MIN |
Returns the minimum value in the expression. The MIN aggregate function ignores NULL values and can be followed by the OVER clause.
With character data columns, MIN finds the value that is lowest in the sort sequence.
Syntax:
MIN ( [ [ ALL | DISTINCT ] <expression> ] )
|
SUM |
Returns the sum of all the values, or only the DISTINCT values (if the DISTINCT clause is specified), in the expression. The SUM aggregate function can only be used with numeric columns.
SUM ignores NULL values and may be followed by the OVER clause.
Syntax:
SUM ( [ [ ALL | DISTINCT ] <expression> ] )
|
STDEV |
Returns the statistical standard deviation of all values in the specified expression. The STDEV aggregate function ignores NULLs and may be used followed by the OVER clause.
If STDEV is used on all items in a SELECT statement, each value in the result set is included in the calculation. STDEV can only be used with numeric columns.
Syntax:
STDEV ( [ [ ALL | DISTINCT ] <expression> ] )
|
STDEVP |
Returns the statistical standard deviation for the population for all values in the specified expression. The STDEVP aggregate function ignores NULL values and may be followed by the OVER clause.
If STDEVP is used on all items in a SELECT statement, each value in the result set is included in the calculation. STDEVP can only be used with numeric columns.
Syntax:
STDEVP ( [ [ ALL | DISTINCT ] <expression> ] )
|
VAR |
Returns the statistical variance of all variables in the specified expression. The VAR aggregate function ignores NULL values and may be followed by the OVER clause.
If VAR is used on all items in a SELECT statement, each value in the result set is included in the calculation. VAR can only be used with numeric columns.
Syntax:
VAR ( [ [ ALL | DISTINCT ] <expression> ] )
|
VARP |
Returns the statistical variance for the population for all values in the specified expression. The VARP aggregate function ignores NULL values and may be followed by the OVER clause.
If VARP is used on all items in a SELECT statement, each value in the result set is included in the calculation. VARP can only be used with numeric columns.
Syntax:
VARP ( [ [ ALL | DISTINCT ] <expression> ] )
|