OCP-1Z0-051 补充题库 第37题
2014-10-16 00:08
369 查看
一、原题
See the exhibit and examine the structure of the 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, grade
FROM customers, 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, grade
FROM customers , grades
WHERE cust_credit_limit IN (SELECT MAX(cust_credit_limit)
FROM customers)
AND MAX(cust_credit_limit) BETWEEN startval AND endval;
答案: B,C
二、题目翻译
下面是CUSTOMERS and GRADES表的结构
要显示有最高信用额度的客户的names和grades
下面哪句能实现这个功能
三、题目解析
customers, grades两张表的关联条件是cust_credit_limit BETWEEN startval AND endval,
然后,要求信用额度最大的客户,再添加一个条件,信用额=最大值。
See the exhibit and examine the structure of the 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, grade
FROM customers, 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, grade
FROM customers , grades
WHERE cust_credit_limit IN (SELECT MAX(cust_credit_limit)
FROM customers)
AND MAX(cust_credit_limit) BETWEEN startval AND endval;
答案: B,C
二、题目翻译
下面是CUSTOMERS and GRADES表的结构
要显示有最高信用额度的客户的names和grades
下面哪句能实现这个功能
三、题目解析
customers, grades两张表的关联条件是cust_credit_limit BETWEEN startval AND endval,
然后,要求信用额度最大的客户,再添加一个条件,信用额=最大值。
相关文章推荐
- OCP-1Z0-051 补充题库 第2题 添加外键FOREIGN KEY
- OCP-1Z0-051 补充题库 第13题 MERGE INTO语句
- OCP-1Z0-051 补充题库 第17题 约束的注意事项
- OCP-1Z0-051 补充题库 第32题 ALL、ANY、IN
- OCP-1Z0-051 补充题库 第38题 nvl用法
- OCP-1Z0-051 补充题库 第3题 隐式格式转换
- OCP-1Z0-051 补充题库 第8题 子查询的使用范围
- OCP-1Z0-051 补充题库 第11题 SQL和SQL*Plus的区别
- OCP-1Z0-051 补充题库 第14题 关于表约束的视图
- OCP-1Z0-051 补充题库 第18题 DELETE语句的特性
- OCP-1Z0-051 补充题库 第33题 sql*plus命令
- OCP-1Z0-051 补充题库 第39题 日期运算
- OCP-1Z0-051 补充题库 第41题 nvl函数的使用
- OCP-1Z0-051 补充题库 第9题 to_char将数字转成字符的格式应用
- OCP-1Z0-051 补充题库 第19题 限制替代变量的输入值
- OCP-1Z0-051 补充题库 第42题 DROP TABLE命令的影响
- OCP-1Z0-051 补充题库 第4题 聚合函数的使用
- OCP-1Z0-051 补充题库 第10题 集合操作中的ORDER BY子句
- OCP-1Z0-051 补充题库 第15题 子查询和join
- OCP-1Z0-051 补充题库 第20题 约束的注意事项