加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

OCP-1Z0-051-V9 02-141题

发布时间:2020-12-14 04:26:32 所属栏目:大数据 来源:网络整理
导读:141. View the Exhibit and examine the structure of CUSTOMERS and GRADES tables. You need to display names and grades of customers who have the highest credit limit. Which two SQL statements would accomplish the task? (Choose two.)? A. SELE

141. View the Exhibit and examine the structure of CUSTOMERS and GRADES tables.

You need to display names and grades of customers who have the highest credit limit.

Which two SQL statements would accomplish the task? (Choose two.)?

A. SELECT custname,grade

FROM customers,grades

WHERE (SELECT MAX(cust_credit_limit)???????

FROM customers) BETWEEN startval and endval;

B. SELECT custname,grades

WHERE (SELECT MAX(cust_credit_limit)???????

FROM customers) BETWEEN startval and endval???

AND cust_credit_limit BETWEEN startval AND endval;

C.?SELECT custname,grade

FROM customers,grades

WHERE cust_credit_limit = (SELECT MAX(cust_credit_limit)????????????????????????????

FROM customers)

AND cust_credit_limit BETWEEN startval AND endval;

D. SELECT custname,grades

WHERE cust_credit_limit IN (SELECT MAX(cust_credit_limit)????????????????????????????

FROM customers)

AND MAX(cust_credit_limit) BETWEEN startval AND endval;

Answer: BC

答案解析:

参考:http://www.voidcn.com/article/p-tfjgnoug-bbu.html

题意要求显示有最高credit limit的用户的名称和等级。

?

A,缺少 cust_credit_limit BETWEEN startval AND endval这个条件。
BC,使用的非等值连接
D有语法错误,WHERE子句里不能使用组函数

?

?

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://www.cnblogs.com/captainbed

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读