min
Aggregate function that calculates the minimum across a group of values.
Example:
If you need non-aggregate function to choose a minimum of two values, see least:
min
Introduced in: v1.1
Aggregate function that calculates the minimum across a group of values.
Syntax
Arguments
column— Column name or expression.Any
Returned value
Returns the minimum value across the group with type equal to that of the input. Any
Examples
Simple min example
Min with GROUP BY