ITPub博客

首页 > 数据库 > Oracle > OCP 1Z0-051-76

OCP 1Z0-051-76

原创 Oracle 作者:LuiseDalian 时间:2014-05-16 07:28:05 0 删除 编辑
(76)You need to display the first names of all customers from the CUSTOMERS table that contain the character 'e' and have the character 'a' in the second last position.

Which query would give the required output?

A.

SELECT cust_first_name FROM customers

WHERE INSTR(cust_first_name, 'e') <> 0

AND SUBSTR(cust_first_name, -2, 1) = 'a';

B.

SELECT cust_first_name FROM customers

WHERE INSTR(cust_first_name, 'e')<>''

AND SUBSTR(cust_first_name, -2, 1)='a';

C.

SELECT cust_first_name FROM customers

WHERE INSTR(cust_first_name, 'e')IS NOT NULL   

AND SUBSTR(cust_first_name, 1,-2)='a';

D.

SELECT cust_first_name FROM customers

WHERE INSTR(cust_first_name, 'e')<>0

AND SUBSTR(cust_first_name, LENGTH(cust_first_name),-2)='a';


答案:(A)

解析:


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1162361/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: OCP 1Z0-051-79
下一篇: OCP 1Z0-051-74
请登录后发表评论 登录
全部评论

注册时间:2012-02-06

  • 博文量
    1986
  • 访问量
    6040880