COALESCE
Description
Evaluates the arguments in order and returns the current value of the first expression that initially doesn't evaluate to NULL. For example, SELECT COALESCE(NULL, NULL, 'third_value', 'fourth_value'); returns the third value because the third value is the first value that isn't null. (COALESCE in Transact-SQL).
Sample Source Pattern
Syntax
COALESCE ( expression [ ,...n ] ) COALESCE( <expr1> , <expr2> [ , ... , <exprN> ] )Examples
Code:
Result:
Code:
Result:
Known Issues
No issues were found.
Related EWIs
No related EWIs.
Last updated
