Oracle® OLAP DML Reference 10g Release 2 (10.2) Part Number B14346-01 |
|
|
View PDF |
The NVL2 function returns one value when the value of a specified expression is not NA
, or another value when the value of the specified expression is NA
.
To merely replace a NA
value with a string, use NVL.
Return Value
The data type of the return value is always the data type of expr2 (that is, the expression whose value is returned when the value of expr1 is not NA
).
Syntax
NVL2 (expr1 , expr2 , expr3)
Arguments
The expression whose value this function evaluates.
An expression whose value is returned when the value of expr1 is not NA.
An expression whose value is returned when the value of expr1 is NA.
Notes
Comparing Values of Different Data Types
When the data types of expr2 and expr3 are different, then the function converts expr3 to the data type of expr2 before comparing them.