Multiple choice technology

What output will the follwing statement produce? Select NVL2(NULL,'NOT NULL', NULL) from dual;

  1. NULL

  2. NOT NULL

  3. Function NVL2 is not defined

  4. None of the above

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

The NVL2 function returns the second argument if the first is NOT NULL, otherwise returns the third argument. Since the first argument (NULL) is null, NVL2 returns the third argument which is NULL in this case. The result of selecting this from dual will be NULL.