Oracle Database Administration I — Question 52

The CUSTOMERS table has a CUST_CREDIT_LIMIT column of data type NUMBER.
Which two queries execute successfully? (Choose two.)

Answer options

Correct answer: C, E

Explanation

Option C is correct because it uses NVL correctly, converting the numeric result to a string using TO_CHAR before applying NVL. Option E is also correct as it uses NVL2, which checks if cust_credit_limit is not null, and converts the numeric result to a string with TO_CHAR. Options A, B, and D will fail because they either do not handle null values appropriately or do not convert the data type correctly.