Aggregate
|
Returns
|
AVG
|
The average of the values in a numeric column expression. For example, AVG(salary) returns the average of all salary column values.
|
COUNT
|
The number of values in any field expression. For example, COUNT(name) returns the number of name values. When using COUNT with a field name, COUNT returns the number of non-NULL column values. A special example is COUNT(*), which returns the number of rows in the set, including rows with NULL values.
Note: The driver does not support COUNT(DISTINCT *). For example, SELECT COUNT(DISTINCT *) FROM mytable results in a syntax error.
|
MAX
|
The maximum value in any column expression. For example, MAX(salary) returns the maximum salary column value.
|
MIN
|
The minimum value in any column expression. For example, MIN(salary) returns the minimum salary column value.
|
SUM
|
The total of the values in a numeric column expression. For example, SUM(salary) returns the sum of all salary column values.
|