MIN
Returns the smallest value among the rows.
Syntax
MIN(<expression>)
An aggregate function: it returns the smallest value from a group of rows. It works not only with numbers but also with dates (the earliest) and text (the first alphabetically). It skips NULL. To find the largest value, use MAX.