【2019年8月版本】OCP 071认证考试最新版本的考试原题-第5题

喜你入骨 提交于 2019-12-10 04:45:19

choose the best answer

The CUSTOMERS table has a CUST_LAST_NAME column of data type VARCHAR2.

The table has two rows whose COST_LAST_MANE values are Anderson and Ausson.

Which query produces output for CUST_LAST_SAME containing Order for the first row and Aus for the second?

A) SELECT REPLACE (REPLACE(cust_last_name,'son',''),'An','O') FROM customers;

B) SELECT REPLACE (TRIM(TRALING 'son' FROM cust_last_name), 'An','O') FROM customers;

C) SELECT INITCAP (REPLACE(TRIM('son' FROM cust_last_name),'An','O')) FROM customers;

D) SELECT REPLACE (SUBSTR(cust_last_name,-3), 'An', 'O') FROM customers;

Answer:A

 

(解析:经过测试,A 答案能够打印正确的结果。)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!