July 2002
Beginner
424 pages
9h 30m
English
The COALESCE() function returns the first non-null expression among its arguments. COALESCE() often is used to display a specific value instead of a null in a result, which is helpful if your users find nulls confusing. COALESCE() is just shorthand for a common form of the searched CASE expression:
COALESCE(expr1, expr2, expr3)
is equivalent to:
CASE WHEN expr1 IS NOT NULL THEN expr1 WHEN expr2 IS NOT NULL THEN expr2 ELSE expr3 END
COALESCE(expr1, expr2,...)
Read now
Unlock full access