QuestionQ206

VerifiedUsing Conversion Functions and Conditional Expressions

View the exhibit and review the structure and data in the CUST_STATUS table.

Question Image

You execute the following SQL statement:

Question Image

Which statement is true about execution of the preceding query?

Explanation

NULLIF(AMT_SPENT, CREDIT_LIMIT) returns NULL when AMT_SPENT equals CREDIT_LIMIT, and it is also NULL when AMT_SPENT is null. NVL2 returns its third expression, 1000, when its first expression is null, so those rows receive a bonus of 1000.

Community Discussion

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