AVG
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Computes the average of a collection of values.
The keyword DISTINCT specifies that the duplicate
values are to be eliminated before computing the average.
Syntax
|
Notes
-
NULLvalues are eliminated before the average value is computed. If all the values areNULL, the result isNULL. - The argument to the function must be of type
SMALLINT,INTEGER,NUMERIC,REAL, orFLOAT. - The result is of type
NUMERIC.
Example
This
example illustrates the AVG function:
|