The MySQL GREATEST() function is a comparison function that returns the largest value from a list of values.
The list of values is provided as multiple arguments. So in other words, GREATEST() returns the maximum-valued argument from a list of arguments.