Multiple choice technology databases

Output of the below two queries will be same.. 1.select nvl('abc','a') from dual; 2.select nvl('abc',0) from dual;

  1. True

  2. False

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

NVL returns the first argument if it is not null, otherwise returns the second argument. Since 'abc' is not null, both NVL('abc','a') and NVL('abc',0) return 'abc'. The second argument's type is irrelevant when the first is non-null.