MAX
Computes the maximum of all input values.
To compare string values, use STRING_MAX.
Syntax
MAX(X)
Arguments
X
Type: numeric
The field to find the maximum value of.
Returns
Type: double
Returns the maximum value of all input values.