NVL2
Overview
Returns different values depending on whether the first argument is NULL: returns the second argument when the first is not NULL, and returns the third argument when the first is NULL.
Syntax
Parameters
<expr>: The expression to test for NULL.<value_if_not_null>: The value returned when<expr>is not NULL.<value_if_null>: The value returned when<expr>is NULL.
Note: NVL2 only tests whether the first argument is NULL, not whether it is truthy. Non-NULL values such as 0 and empty strings all take the second argument path.
