NULLIF function returns _____ if the arguments are not equal
-
NULL
-
First argument
-
Second argument
-
None of the above
B
Correct answer
Explanation
The SQL NULLIF function compares two expressions. If they are equal, it returns NULL. If they are not equal, it returns the value of the first argument. Returning the second argument or NULL when they differ is incorrect according to SQL standards.