Oracle Database SQL — Question 79

The CUSTOMERS table has a CUST_CREDIT_LIMIT column of data type number.

Which two queries execute successfully? (Choose two.)

Answer options

Correct answer: B, D

Explanation

The correct answers are B and D. Option B uses NVL2 correctly to check if cust_credit_limit is not null, converting the calculation to a string format, which is valid. Option D also correctly applies NVL to the result of TO_CHAR. Options A and C do not handle potential null values properly in the context of the number type, and option E contains a typo in 'cust_credit_iimit'.