Documentation

    greatest

    Return the largest of its arguments, ignoring missing values. Text is compared by character, so lowercase letters count as larger than uppercase letters.

    Try an expression

    In Formula, enter the expression and set Output type to INTEGER.

    Expression

    greatest(42, 84)

    Result

    84

    To use your own data, replace the example values with column names. Keep format strings and other options as written.

    Arguments and types

    greatest(arg1, ...)
    arg1
    Any value
    Supported signatures (1)
    greatest(arg1: ANY, ...: ANY) → ANY

    The result type can depend on the input types. See DuckDB for the full argument rules.

    Things to know

    With a missing first argument

    greatest(NULL::INTEGER, 84)

    84

    Browse numbersDuckDB documentation

    Function metadata from DuckDB, used under the MIT license.