MAX
Description
This function calculates the maximum value per group. MAX can be applied on any data type.
Syntax
MAX ( table.column )
NULL handling
NULL values are ignored, so they do not influence the result. If all the values of a group are NULL, the result for this group is also NULL.
Examples
[1] Maximum of column. | ||||||||||
| ||||||||||
|
[2] Get the maximum value by country. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
|
[3] Get the maximum value mixed with nulls, grouped by country. | ||||||||||||||||||
| ||||||||||||||||||
|