Skip to main content

MAXIMUM

Returns the maximum of the provided values.

Syntax​

MAXIMUM ( expression , expression [,...n] ) 

Arguments​

expression
All arguments must be of the same data type for a valid comparison.

Return Type​

Returns the maximum value with its corresponding input type.

Examples​

Examples in this section use the example blockchain.

The following example calculates the MAXIMUM for the specified components by casting integer as a FLOAT32.

SELECT MAXIMUM(real, FLOAT32(integer)) FROM example;

Response:

MAXIMUM(real, FLOAT32(integer)) [FLOAT32]
-1
0
1
2