GREATEST
Returns the maximum value from a set of values.
Analyze Syntax
func.greatest(<value1>, <value2> ...)
Analyze Examples
func.greatest((5, 9, 4))
┌──────────────────────────┐
│ func.greatest((5, 9, 4)) │
├──────────────────────────┤
│ 9 │
└──────────────────────────┘
SQL Syntax
GREATEST(<value1>, <value2> ...)
SQL Examples
SELECT GREATEST(5, 9, 4);
┌───────────────────┐
│ greatest(5, 9, 4) │
├───────────────────┤
│ 9 │
└───────────────────┘
Last modified April 25, 2024 at 8:41 PM EST: updating conditional functions (c113c0b)