GREATEST
Applies to: CELONIS 4.7
Description
The GREATEST function returns the greatest element that is not NULL from a set of values.
It supports all PQL types (including table columns) as input. All arguments must be of the same data type. The data type of the result is the same as the data type of the input columns or values.
The GREATEST function requires at least two expressions.
Unicode support
For the STRING type, GREATEST only supports the ASCII range of characters, and not the full Unicode character set.
SYNTAX
GREATEST ( table.column1 , ... , table.columnN )
NULL handling
If all values are NULL, then GREATEST will also return NULL.
Tips
Examples
[1] GREATEST with four integer columns as arguments with some null values at different positions. |
[2] GREATEST with two columns and a constant as arguments. |
[3] GREATEST with four integer columns as arguments containing only null values.
|
[4] GREATEST with four float columns as arguments with some null values at different positions.
|
[5] GREATEST with four string columns as arguments with some null values at different positions.
|
[6] GREATEST with four date columns as arguments with some null values at different positions.
|