70.You want to display only those product names with their list prices where the list price is at le
2016-03-02 15:40
387 查看
70.You want to display only those product names with their list prices where the list price is at least double
the minimum price. The report should start with the product name having the maximum list price satisfying
this condition.
Evaluate the following SQL statement:
SQL>SELECT prod_name,prod_list_price
FROM products
WHERE prod_list_price >= 2 * prod_min_price
Which ORDER BY clauses can be added to the above SQL statement to get the correct output?
(Choose all that apply.)
A.ORDER BY prod_list_price DESC, prod_name;
B.ORDER BY (2*prod_min_price)DESC, prod_name;
C.ORDER BY prod_name, (2*prod_min_price)DESC;
D.ORDER BY prod_name DESC, prod_list_price DESC;
E.ORDER BY prod_list_price DESC, prod_name DESC;
答案:AE
解析:从题目中可以看到要求是list price降序,所以选AE
the minimum price. The report should start with the product name having the maximum list price satisfying
this condition.
Evaluate the following SQL statement:
SQL>SELECT prod_name,prod_list_price
FROM products
WHERE prod_list_price >= 2 * prod_min_price
Which ORDER BY clauses can be added to the above SQL statement to get the correct output?
(Choose all that apply.)
A.ORDER BY prod_list_price DESC, prod_name;
B.ORDER BY (2*prod_min_price)DESC, prod_name;
C.ORDER BY prod_name, (2*prod_min_price)DESC;
D.ORDER BY prod_name DESC, prod_list_price DESC;
E.ORDER BY prod_list_price DESC, prod_name DESC;
答案:AE
解析:从题目中可以看到要求是list price降序,所以选AE
相关文章推荐
- php设计模式 数据对象映射模式
- Android View自动生成插件
- IT资讯---------查看文章
- C++实验1-复习
- 【python】编程语言入门经典100例--17
- IT资讯----------上拉加载,下拉刷新和缓存
- 拥抱 Android Studio 之四:Maven 仓库使用与私有仓库搭建
- 很久没写博客了
- ChildViewController
- ip冲突和双网卡模式
- zImage与uImage的区别
- 第一次上机实验-1
- c++实验报告 求三角形面积
- IT资讯-------------显示抓取的文章
- WPF:把Task, Lazy和INotifyPropertyChanged组装成一个超级属性
- AsyncQueryHandler
- 第一周上机实验
- c++第一次实验
- iOS中的__block 与__weak
- mongodb地理信息应用