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