- 最后登录
- 2016-12-8
- 在线时间
- 18 小时
- 威望
- 0
- 金钱
- 179
- 注册时间
- 2016-10-10
- 阅读权限
- 10
- 帖子
- 156
- 精华
- 0
- 积分
- 0
- UID
- 2486
|
107#
发表于 2016-11-23 14:25:24
本帖最后由 ZHAODONG 于 2016-11-23 14:26 编辑
111. View the Exhibit and examine the structure of the CUSTOMERS table.(查看表结构)
Which statement would display the highest credit limit available in each income level in each city in the CUSTOMERS table?
(哪条语句显示每个城市中每个收入水平的最高信用额度)
A. SELECT cust_city, cust_income_level, MAX(cust_credit_limit )
FROM customers
GROUP BY cust_city, cust_income_level, cust_credit_limit;
B. SELECT cust_city, cust_income_level, MAX(cust_credit_limit)
FROM customers
GROUP BY cust_city, cust_income_level;
C. SELECT cust_city, cust_income_level, MAX(cust_credit_limit)
FROM customers
GROUP BY cust_credit_limit, cust_income_level, cust_city ;
D. SELECT cust_city, cust_income_level, MAX(cust_credit_limit)
FROM customers
GROUP BY cust_city, cust_income_level, MAX(cust_credit_limit);
答案:B
AC不正确,因为GROUP BY子句不满足条件
D报错,因为GROUP BY子句中不能使用MAX
|
|