Getting started
User guides
Administration guides
Reference guides
Resources
Updated Aug 10, 2022
Send us feedback
min
Returns the minimum value of expr in a group.
expr
min(expr) [FILTER ( WHERE cond ) ]
expr: An expression of any type that can be ordered.
cond: An optional boolean expression filtering the rows used for aggregation.
cond
The result type matches the type of the argument.
> SELECT min(col) FROM VALUES (10), (50), (20) AS tab(col); 10
max aggregate function
avg aggregate function
max_by aggregate function
min_by aggregate function
mean aggregate function