COUNT
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Computes either the number of rows in a group
of rows or the number of non‑NULL values in a group
of values.
Syntax
|
Notes
- The
keyword
DISTINCTspecifies that the duplicate values are to be eliminated before computing the count. - If the argument to
COUNTfunction is ‘*', then the function computes the count of the number of rows in a group. - If the argument to
COUNTfunction is not ‘*', thenNULLvalues are eliminated before the number of rows is computed. - The argument column_ref or expression can be of any type.
- The result of the function is of BIGINT data type. The result
is never
NULL.
Example
This
example illustrates the COUNT function:
|