Multiple choice technology databases

select nvl2(exp1,exp2,exp3) from dual. In this if exp1 is null,what will be the output?

  1. exp1

  2. exp2

  3. exp3

  4. error

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The Oracle NVL2 function evaluates the first expression. If it is not null, it returns the second expression, but if it is null, it returns the third expression.