LEAST

LEAST(aValue, bValue [,...])

Description

Returns the smallest value that is not NULL, or NULL if all values are NULL.

Examples

LEAST(1, 2, 3)