LEAST
Applies to: CELONIS 4.7
Description
The LEAST function returns the least 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 LEAST function requires at least two expressions.
Unicode support
For the STRING type, LEAST only supports the ASCII range of characters, and not the full Unicode character set.
SYNTAX
LEAST ( table.column1 , ... , table.columnN )
NULL handling
If all values are NULL, then LEAST will also return NULL.
Tips
Examples
[1] LEAST with four integer columns as arguments with some null values at different positions. |
[2] LEAST with two columns and a constant as arguments. |
[3] LEAST with four integer columns as arguments containing only null values. |
[4] LEAST with four float columns as arguments with some null values at different positions.
|
[4] LEAST with four float columns as arguments with some null values at different positions.
|
[5] LEAST with four string columns as arguments with some null values at different positions.
|
[6] LEAST with four date columns as arguments with some null values at different positions.
|