Getting started
User guides
Administration guides
Reference guides
Resources
Updated Aug 04, 2022
Send us feedback
greatest
Returns the greatest value of all arguments, skipping null values.
greatest(expr1 [, ...])
exprN: Any expression of a comparable type with a shared least common type across all exprN.
exprN
The result type is the least common type of the arguments.
> SELECT greatest(10, 9, 2, 4, 3); 10
least function
SQL data type rules