Loading lesson path
Concept visual
Start at both ends
Return the greatest value of the list of arguments:
SELECT GREATEST(3, 12, 34, 8, 25);The GREATEST() function returns the greatest value of the list of arguments.
See also the LEAST() function.
arg1, arg2, arg3, ...)
Description arg1, arg2, arg3, ... Required. The list of arguments to be evaluated
From MySQL 4.0
Return the greatest value of the list of arguments:
SELECT GREATEST("w3Schools.com", "microsoft.com", "apple.com");❮ MySQL Functions