Multiple choice technology databases

SELECT NVL2('first','second','testing') FROM DUAL ;

  1. third

  2. null

  3. second

  4. error

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

Since 'first' is not null, NVL2 returns the second argument 'second'. NVL2 evaluates the first argument: if not null, return the second argument; if null, return the third.