大数据就业实战培训 Oracle就业实战培训

CUUG,以就业为导向,让学员学到真正实用的技术

当前位置: CUUG培训-优技培训 >> 071考试 >

【071考试】最新OCP认证071考试题库整理-第30题

【071考试】最新OCP认证071考试题库整理-第30题

来源:CUUG培训-优技培训    更新时间:2019/5/23 9:33:05    阅读次数:

071考试题库之前是比较稳定的,但随着Oracle的调整,071考试不断的增加新的考题,增加了考试的难度,所以我们专门收集整理了这些考试,并对这些考题进行解析,希望可以对考生有帮助。

每周五晚8点,我们有免费的OCP解析公开课,地址:https://ke.qq.com/course/326223  OCP题库交流群:1015267481,验证ocp

-------------------------------------------------------

071考试-第30题、choose the best answer

View the Exhibit and examine the structure of the SALES and STORES tables.

You want to display the store name and the total quantity sold for each item in the store.

Which SQL statement will give the required output?

A) SELECT str.name, s1.items_id, SUM(s1.quantity)

FROM sales s1 JOIN stores str

ON (s1.store_id = str.store_id)

GROUP BY str.name, s1.items_id, s1.quantity;


B) SELECT str.name, s1.items_id, SUM(s1.quantity)

FROM sales s1 JOIN stores str

ON (s1.store_id = str.store_id)

GROUP BY str.name, s1.items_id;


C) SELECT str.name, s1.items_id,

(SELECT SUM(quantitY)

FROM sales sls

ON sls.store_id = s1.store_id

GROUP BY sls.store_id)

FROM sales s1 JOIN stores str

ON (s1.store_id = str.store_id);


D) SELECT str.name, s1.items_id, SUM(s1.quantity)

FROM sales s1 JOIN stores str ON (s1.store id = str.store_id)

GROUP BY s1.items_id, s1.quantity;

Answer:B

(解析:分组函数的最基本特点,没有出现在分组函数中的列必须要出现在 group by 子句中。)

071考试
大数据课程
WDP
oracle机构
oracle认证
oracle课程
oracle视频
CUUG就业实战培训
CUUG与ORACLE公司建立最核心、最权威、最深层次的战略合作伙伴关系;
CUUG是唯一一家只做DBA就业培训和oracle认证的授权机构,28年培养数万名oracle技术人才;
CUUG金牌讲师授课,来自一线的资深ORACLE OCM技术专家团队;
CUUG顶尖完善的学习体系,以甲骨文原厂ORACLE数据库核心技术为教学课程;

报名入口 点击进入

课程咨询:400-0909-964

考试咨询:400-0909-964

企业QQ:800060152

E-mail:cuug_bj@cuug.com