MAX
MAX (expression)
Parameters
Parameters
expression- may be a column name, a result of another function, or a math operation.
Description
Description
Returns the highest value. If no entries are selected, the result is NULL. Aggregates are only allowed in select statements. The returned value is of the same data type as the parameter.
Example
Example
Get a height of the tallest player:
SELECT MAX(height) FROM Players;
Updated about 5 years ago