NVL2#
Functionality:#
This Oracle function will return one of two values depending upon the value of the first parameterParameters:#
StringValue | The variable you are working with |
NotNullValue | The value you want to be returned if the variable is not NULL |
NullValue | The value you want to be returned if the variable is NULL |
Returns: #
StringErrors: #
NoneOperations: #
If the first parameter is NOT null, then this function will return the value of the second parameter.If the first parameter IS a null value, then this function will return the value of the third parameter.
Example:#
NVL2(~,'DMZ','No')|| will evaluate the variable passed and if it is not NULL, will return DMZ. If it is null, then it will return No