Skip to main content
The GREATEST function selects the largest value from a list of any number of expressions. The expressions must all be convertible to a common data type, which will be the type of the result. NULL values in the argument list are ignored. The result will be NULL only if all the expressions evaluate to NULL.

Syntax

Parameters

Return Types

Same as input type

Example

Rows: 1Execution time: 5.91ms