61.View the Exhibit and examine the structure of the PROMOTIONS table.
2016-03-01 17:26
423 查看
61.View the Exhibit and examine the structure of the PROMOTIONS table.
You need to generate a report of all promos from the PROMOTIONS table based on the following conditions:
The promo should have ended after 1st January 2001.
The promo name should not begin with 'T' or 'N'.
The promo should cost more than $20000.
Which WHERE clause would give the required result?
A.WHERE promo_name NOT LIKE 'T%' OR promo_name NOT LIKE 'N%' AND promo_cost > 20000 AND promo_end_date > '1-JAN-01'
B.WHERE (promo_name NOT LIKE 'T%' AND promo_name NOT LIKE 'N%')OR promo_cost > 20000 OR promo_end_date > '1-JAN-01'
C.WHERE promo_name NOT LIKE 'T%' AND promo_name NOT LIKE 'N%' AND promo_cost > 20000 AND promo_end_date > '1-JAN-01'
D.WHERE (promo_name NOT LIKE '%T%' OR promo_name NOT LIKE '%N%') AND(promo_cost > 20000 AND promo_end_date > '1-JAN-01')
答案:C
解析:AD,not like和or矛盾,从题目可以知道排除B
You need to generate a report of all promos from the PROMOTIONS table based on the following conditions:
The promo should have ended after 1st January 2001.
The promo name should not begin with 'T' or 'N'.
The promo should cost more than $20000.
Which WHERE clause would give the required result?
A.WHERE promo_name NOT LIKE 'T%' OR promo_name NOT LIKE 'N%' AND promo_cost > 20000 AND promo_end_date > '1-JAN-01'
B.WHERE (promo_name NOT LIKE 'T%' AND promo_name NOT LIKE 'N%')OR promo_cost > 20000 OR promo_end_date > '1-JAN-01'
C.WHERE promo_name NOT LIKE 'T%' AND promo_name NOT LIKE 'N%' AND promo_cost > 20000 AND promo_end_date > '1-JAN-01'
D.WHERE (promo_name NOT LIKE '%T%' OR promo_name NOT LIKE '%N%') AND(promo_cost > 20000 AND promo_end_date > '1-JAN-01')
答案:C
解析:AD,not like和or矛盾,从题目可以知道排除B
相关文章推荐
- Error Handling and Exception
- Android 开机自启动
- 详解 RN 中的 require()
- 扫描输入--来自《Java编程思想第四版》第13章
- 如何更改Eclipse的workspace路径
- eclipse中使用android ndk
- UGUI源码学习之初涉Image(一)
- “软件工程”课程的学习目标
- 利用css实现文本超出N行之后显示省略号等css常用小知识点
- python模块介绍- SocketServer 网络服务框架
- react-native-fileupload使用 bug -- 无法火车type 和 name
- ARM Linux 3.x的设备树(Device Tree)
- Oracle 11g必须开启的服务及服务详细介绍
- js不提示直接关闭标签页
- mysql字符集设置
- reflux+react web 第五种写法
- 编译Android时,添加或者删除system.img中第三方apk、更改Android系统默认语言
- 团队Git工作流总结
- c调用c++函数(包括类成员函数)的方法
- UVa——540Team Queue(STL练习map、queue数组的综合使用)