The max() function returns the number with the greater value from a set of two numeric fields, constants or expressions.
max(num1, num2)
• num1 – Numeric field, constant or expression you wish to compare to the value in the num2 parameter.
• num2 – Numeric field, constant or expression you wish to compare to the value in the num1 parameter.
Numeric
The max() function can’t be used for date or time values.