Syntax:
GREATEST(value1,value2,...)

With two or more arguments, returns the largest (maximum-valued)
argument. The arguments are compared using the same rules as for
LEAST().

URL: https://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html

