77.In the CUSTOMERS table, the CUST_CITY column contains the value 'Paris' for the

来源:互联网 发布:自动随访系统 源码 编辑:程序博客网 时间:2024/06/06 03:30
77.In the CUSTOMERS table, the CUST_CITY column contains the value 'Paris' for the
CUST_FIRST_NAME 'ABIGAIL'.
Evaluate the following query:


SQL> SELECT INITCAP(cust_first_name||' '||UPPER(SUBSTR(cust_city,-LENGTH(cust_city),2)))
FROM customers WHERE cust_first_name = 'ABIGAIL';


What would be the outcome?
A.Abigail PA
B.Abigail Pa
C.Abigail IS
D.an error message
答案:B
解析:最外层INITCAP函数,它是首字母大写,排除ACD
0 0
原创粉丝点击