LEAST

This function returns the smallest value of the list of arguments.

Syntax

LEAST(arg1, arg2, arg3, ...)

Example

SELECT LEAST(8, 3, 2)

Returns: 2