2、(4-7) choose the best answer:
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')<>'' AND
SUBSTR(cust_first_name, -2, 1)='a';
B) SELECT cust_first_name
FROM customers
WHERE INSTR(cust_first_name, 'e')<>0 AND
SUBSTR(cust_first_name, -2, 1)='a';
C) SELECT cust_first_name
FROM customers
WHERE INSTR(cust_first_name, 'e')<>0 AND
SUBSTR(cust_first_name, LENGTH(cust_first_name),-2)='a';
D) SELECT cust_first_name
FROM customers
WHERE INSTR(cust_first_name, 'e')IS NOT NULL AND
SUBSTR(cust_first_name, 1,-2)='a';
Answer:B

最新文章

  1. Asp.net MVC路由机制
  2. YUI Compressor for Sublime text2
  3. SQLServer 2000个人版下载
  4. linux中的常用命令
  5. Linq101-QueryExecution
  6. SKPhysicsBody类
  7. abstract、override、new、virtual、sealed使用和示例
  8. setTimeout,setInterval你不知道的…
  9. Linux 学习记录 五(软件的安装升级).
  10. jQuery提示parsererror错误解决办法
  11. AngularJS进阶(十七)在AngularJS应用中实现微信认证授权遇到的坑
  12. How-to: Do Statistical Analysis with Impala and R
  13. JDBC告警系列(一)The server time zone value &#39;&#214;&#208;&#39; is unrecognized or represents more than one time zone.
  14. 剑指offer 2.字符串 替换空格
  15. 测试工具之badboy
  16. netty源码理解(三) 从channel读取数据
  17. 使用yarn 安装 Vue-DevTools
  18. Nginx(九)-- Nginx实际使用配置
  19. 解决ubuntu下mysql不能远程连接数据库的问题【转】
  20. WEB安全第四篇--与数据库的亲密接触:SQL注入攻击

热门文章

  1. Makefile 自动搜索 c 和 cpp 文件, 并生成 .a 静态库文件
  2. 【ZOJ 3228】Searching the String 【AC自动机】
  3. 机器学习模型数据结构:logistic regression, neural network, convolutional neural network
  4. 魔法变量*args 和 **kwargs
  5. linux操作系统下,怎么使用kill按照PID一次杀死多个进程
  6. CSS块级元素、内联元素概念[转]
  7. [模板]单源最短路径(Dijkstra)
  8. bt协议详解 基础篇(上)
  9. 从零开始学习前端JAVASCRIPT — JavaScript中this指向的四种情况
  10. 盒子模型 以及CSS的box-sizing属性。