choose two
The CUSTOMERS table has a CUST_CREDT_LIMIT column of date type number.
Which two queries execute successtully?
A) SELECT TO_CHAR(NVL(cust_credit_limit * .15,'Not Available')) FROM customers;
B) SELECT NVL2(cust_credit_limit * .15,'Not AvailabIe') FROM customers;
C) SELECT NVL(cust_credit_limit * .15, 'Not Available') FROM customers;
D) SLECT NVL(TO_CHAR(cust_credit_limit * .15),'Not available') from customers;
E) SELECT NVL2(cust_credit_limit,TO_CHAR(cust_credit_limit * .15),'NOT Available') FROM customers;
Answer:DE
(解析:注意 nvl 返回的数据类型要与原来列的数据类型一致。此题库以前出现过。)