摘要:本文主要向大家介绍了Oracle数据库之【12c OCP】CUUG OCP认证071考试原题解析(34),通过具体的内容向大家展现,希望对大家学习Oracle数据库有所帮助。
本文主要向大家介绍了Oracle数据库之【12c OCP】CUUG OCP认证071考试原题解析(34),通过具体的内容向大家展现,希望对大家学习Oracle数据库有所帮助。
34.choose two
View the Exhibit and examine the structure of the PRODUCT_INFORMATION and INVENTORIES tables.
You have a requirement from the supplies department to give a list containing PRODUCT_ID, SUPPLIER_ID, and QUANTITY_ON_HAND for all the products where in QUANTITY_ON_HAND is less than five.
Which two SQL statements can accomplish the task? (Choose two.)
A) SELECT product_id, quantity_on_hand,supplier_id
FROM product_information
NATURAL JOIN inventories AND quantity_on_hand < 5;
B) SELECT i.product_id, i.quantity_on_hand,pi.supplier_id
FROM product_information pi JOIN inventories i
ON (pi.product_id=i.product_id) AND quantity_on_hand < 5;
C) SELECT i.product_id, i.quantity_on_hand,pi.supplier_id
FROM product_information pi JOIN inventories i
USING (product_id) AND quantity_on_hand < 5;
D) SELECT i.product_id, i.quantity_on_hand,pi.supplier_id
FROM product_information pi JOIN inventories i
ON (pi.product_id=i.product_id)
WHERE quantity_on_hand < 5;
Answer:BD
(解析:AC 语法不对,执行时显示 ORA-00933: SQL 命令未正确结束
类似的语句:
1、
select d.deptno,d.dname,e.empno,e.ename,e.sal
from emp e join dept d
on (e.deptno=d.deptno)
where sal < 3000;)
2、
select d.deptno,d.dname,e.empno,e.ename,e.sal
from emp e join dept d
on (e.deptno=d.deptno) and sal < 3000;
本文由职坐标整理并发布,希望对同学们学习Oracle有所帮助,更多内容请关注职坐标数据库Oracle数据库频道!
您输入的评论内容中包含违禁敏感词
我知道了
请输入正确的手机号码
请输入正确的验证码
您今天的短信下发次数太多了,明天再试试吧!
我们会在第一时间安排职业规划师联系您!
您也可以联系我们的职业规划师咨询:
版权所有 职坐标-一站式IT培训就业服务领导者 沪ICP备13042190号-4
上海海同信息科技有限公司 Copyright ©2015 www.zhizuobiao.com,All Rights Reserved.
沪公网安备 31011502005948号