QuestionQ139

VerifiedJoining Tables

Which two of these queries run successfully?

Choose two
Explanation

COALESCE(100, NULL, 200) uses compatible numeric and NULL expressions and returns the first non-null value, 100. NULLIF(100, 100) uses compatible numeric arguments and returns NULL because the arguments are equal. Oracle prohibits a literal NULL as the first NULLIF argument, and incompatible numeric/character usage involving 'A' causes conversion errors. Oracle NULLIF documentation Oracle COALESCE documentation

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!