max
aggregate function
Applies to: Databricks SQL Databricks Runtime
Returns the maximum value of expr
in a group.
Syntax
max(expr) [FILTER ( WHERE cond ) ]
This function can also be invoked as a window function using the OVER
clause.