least
Return the smallest of its arguments, ignoring missing values. Text is compared by character, so uppercase letters count as smaller than lowercase letters.
Try an expression
In Formula, enter the expression and set Output type to INTEGER.
Expression
least(42, 84)Result
42To use your own data, replace the example values with column names. Keep format strings and other options as written.
Arguments and types
least(arg1, ...)- arg1
- Any value
Supported signatures (1)
least(arg1: ANY, ...: ANY) → ANYThe result type can depend on the input types. See DuckDB for the full argument rules.
Things to know
With a missing first argument
least(NULL::INTEGER, 84)84
Function metadata from DuckDB, used under the MIT license.