Multiple choice technology databases

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

  1. NOT NULL

  2. NULL

  3. Function NVL2 is not defined

  4. None of the above

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

The NVL2(expr1, expr2, expr3) function returns expr2 if expr1 is not null, and expr3 if expr1 is null. Since the first argument is explicitly NULL, the function returns the third argument, which is also NULL.