SUM
- Last Updated: March 17, 2025
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Returns the sum of the values in a group. The
keyword DISTINCT specifies that the duplicate values
are to be eliminated before computing the sum.
Syntax
|
Notes
- The argument column_ref or expression can be of only numeric data type, such as
INTEGER,DECIMAL, and so on. - The result of the function is of the same data type as that
of the argument except that the result is of type
INTEGERwhen the argument is of typeSMALLINTorTINYINT. - The result can have a
NULLvalue.
Example
This
example illustrates the SUM function:
|