MySQL LEAST Function

Example

Return the smallest value of the list of arguments:

SELECT LEAST(3, 12, 34, 8, 25);

Definition and Usage

The LEAST() function returns the smallest value of the list of arguments.

Note: See also the GREATEST() function. Continue reading MySQL LEAST Function