COALESCE

functionsupportedCore SQL functions

docs.snowflake.com ↗

Conditional expression functions

Returns the first non-NULL expression among its arguments, or NULL if all its arguments are NULL.

Syntax

COALESCE( <expr1> , <expr2> [ , ... , <exprN> ] )

Usage notes

Collation details

- The collation specifications of all input arguments must be compatible. - The comparisons follow the collation based on the input arguments’ collations and precedences. - The collation of the result of the function is the highest-precedence collation of the inputs.