Multiple choice technology databases

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

NVL2(expr1, expr2, expr3) returns expr2 if expr1 is NOT NULL, else returns expr3. Here expr1 is NULL, so it returns expr3 which is NULL. Output is NULL.