标签:type sel customers available tab tom har 认证考试 数据类型
choose twoThe 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 返回的数据类型要与原来列的数据类型一致。此题库以前出现过。)
【2019年8月版本】OCP 071认证考试最新版本的考试原题-第3题
标签:type sel customers available tab tom har 认证考试 数据类型
原文地址:https://blog.51cto.com/13854012/2442467