Returns the maximum value of an expression.
Syntax
Restrictions
The following restrictions apply when you use the MAX function in the SELECT command:
The function does not support the DISTINCT or ALL keywords.
The function does not support the OVER clause.
Example
This example shows the maximum last_incident value for all of the recorded problems.
select max(last_incident) from problem;