首页 > 数据库 > Oracle > OCP 1Z0-051-82
|
CUST_NAME Renske Ladwig Jason Mallin Samuel McCain Allan MCEwen Irene Mikkilineni Julia Nayer |
You need to display customers' second names where the second name starts with "Mc" or "MC." Which query gives the required output?
|
A. SELECT SUBSTR(cust_name, INSTR(cust_name, ' ') + 1) FROM customers WHERE INITCAP(SUBSTR(cust_name, INSTR(cust_name, ' ') + 1))='Mc'; B. SELECT SUBSTR(cust_name, INSTR(cust_name,' ')+1) FROM customers WHERE INITCAP(SUBSTR(cust_name, INSTR(cust_name, ' ') + 1)) LIKE 'Mc%'; C. SELECT SUBSTR(cust_name, INSTR(cust_name,' ') + 1) FROM customers WHERE SUBSTR(cust_name, INSTR(cust_name,' ') + 1) LIKE INITCAP('MC%'); D. SELECT SUBSTR(cust_name, INSTR(cust_name, ' ') + 1) FROM customers WHERE INITCAP(SUBSTR(cust_name, INSTR(cust_name, ' ') + 1)) = INITCAP('MC%'); |
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1163102/ ,如需转载,请注明出处,否则将追究法律责任。