min
aggregate function
Applies to: Databricks SQL Databricks Runtime
Returns the minimum value of expr
in a group.
Syntax
min(expr) [FILTER ( WHERE cond ) ]
This function can also be invoked as a window function using the OVER
clause.
Arguments
expr
: An expression of any type that can be ordered.cond
: An optional boolean expression filtering the rows used for aggregation.