Aggregate Function Name | Result Data Type | Description |
ANY | integer | Returns 1 if any row in the table fulfills the where clause, or 0 if no rows fulfill the where clause. |
AVG | float, money, date (interval only) | Average (sum/count) The sum of the values must be within the range of the result data type. |
COUNT | integer | Count of non-null occurrences |
MAX | same as argument | Maximum value |
MIN | same as argument | Minimum value |
SUM | integer, float, money, date (interval only) | Column total |
STDDEV_POP | float | Compute the population form of the standard deviation (square root of the population variance of the group). |
STDDEV_SAMP | float | Computes the sample form of the standard deviation (square root of the sample variance of the group). |
VAR_POP | float | Computes the population form of the variance (sum of the squares of the difference of each argument value in the group from the mean of the values, divided by the count of the values). |
VAR_SAMP | float | Computes the sample form of the variance (sum of the squares of the difference of each argument value in the group from the mean of the values, divided by the count of the values minus 1). |
Binary Aggregate Function Name | Result Data Type | Description |
REGR_COUNT (indep_parm, dep_parm) | integer | Count of rows with non-null values for both dependent and independent variables. |
COVAR_POP (indep_parm, dep_parm) | float | Population covariance (sum of the products of the difference of the independent variable from its mean, times the difference of the dependent variable from its mean, divided by the number of rows). |
COVAR_SAMP (indep_parm, dep_parm) | float | Sample covariance (sum of the products of the difference of the independent variable from its mean, times the difference of the dependent variable from its mean, divided by the number of rows minus 1). |
CORR (indep_parm, dep_parm) | float | Correlation coefficient (ratio of the population covariance divided by the product of the population standard deviation of the independent variable and the population standard deviation of the dependent variable). |
REGR_R2 (indep_parm, dep_parm) | float | Square of the correlation coefficient. |
REGR_SLOPE (indep_parm, dep_parm) | float | Slope of the least-squares-fit linear equation determined by the (independent variable, dependent variable) pairs. |
REGR_INTERCEPT (indep_parm, dep_parm) | float | Y-intercept of the least-squares-fit linear equation determined by the (independent variable, dependent variable) pairs. |
REGR_SXX (indep_parm, dep_parm) | float | Sum of the squares of the independent variable. |
REGR_SYY (indep_parm, dep_parm) | float | Sum of the squares of the dependent variable. |
REGR_SXY (indep_parm, dep_parm) | float | Sum of the product of the independent variable and the dependent variable. |
REGR_AVGX (indep_parm, dep_parm) | float | Average of the independent variables. |
REGR_AVGY (indep_parm, dep_parm) | float | Average of the dependent variables. |
Name | Exemptions |
Smith | 0 |
Jones | 2 |
Tanghetti | 4 |
Fong | Null |
Stevens | Null |
Function Name | Precision of Result | Scale of Result |
COUNT | Not applicable | Not applicable |
SUM | 39 | Same as argument |
AVG | 39 | Scale of argument + 1 (to a maximum of 39) |
MAX | Same as argument | Same as argument |
MIN | Same as argument | Same as argument |