Aggregates Aggregate

max()

Returns the maximum value present in arg.

Reference: DuckDB 2.0.0

Arguments & returns

2 overloads

max(arg)

Aggregate
Overload link arg Returns
#01 ANY ANY

max(arg, n)

Aggregate
Overload link argn Returns
#02 ANYBIGINT ANY[]

Example

max example
SQL
Haybarn WASM 2.0.0-rc12 · In your browser

Engine example with sample data · Run to view results.