教学文章
Technology Exchange
热门课程
400电话

免费咨询热线
400-090-9964

教学文章

【2019年8月版本】Oracle OCP认证 071考试原题-37

时间:2019-11-05 来源:

【2019年8月版本】OCP 071认证考试最新版本的考试原题-37-CUUG整理

OCP的071考试,在8月份左右全部换了新题,近期考试的题也全部不包括之前的题库了,这次oracle更新071考试题库,虽然全都是新题,但跟之前的相比也有关联,比如把之前的考题稍微变换一下数字、更新一下日期、或者再加一个错误选项等等。

对于2019年8月份的更新,我们CUUG已经进行了收集整理,并给出初步的答案和讲解,仅供参考,希望对考OCP 071认证的同学有帮助。

Choose the best answer

Examine the description of the PRODUCT_INFORMATION table:

Name     NULL?        Type

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

PROD_ID NOT NULL     NUMBER(2)

PROD_NANE           VARCRAR2 (10)

LIST_PRICE             NUMBER(6,2)

Which query retrieves the number of products with a null list price?

A) SELECT (COUNT(list_price) FERM Product_intormation WHERE list_price=NULL;

B) SELECT Count(nvl( list_price,0) )FROM pruduct_information WHERE list_price is null;

C) SELECT COUNT(DISTINCT list_price) FROM produet_infomation WHERE list_price is nulll.

D) SELECT COUNT(list_price) from proceduct_information where list_price is NULL;

Answer:B

(解析:这道题的难点在题目的提问上,题目的意思是哪个查询能够检索到 price 为空的产品数量。由于 list_price 本身为空,count 函数处理的方式是忽略,所以要用 nvl 函数来处理。)

版权所有@北京神脑资讯技术有限公司(CUUG,中国UNIX用户协会) Copyright ALL Rights Reserved 京ICP备11008061号-1

CUUG旗下网站:www.cuug.com.cn www.cuug.com oracle.cuug.com bbs.cuug.com www.cuug.net

电话:010-59426307 010-59426319 邮政编码:100089

地址:北京市海淀区北清路164号28-38号院