Chinaunix首页 | 论坛 | 博客
  • 博客访问: 591529
  • 博文数量: 487
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 4916
  • 用 户 组: 普通用户
  • 注册时间: 2018-07-05 13:59
个人简介

ocp考试资料群:569933648 验证码:ocp OCP 12c 19c考试题库解析与资料群:钉钉群号:35277291

文章分类

全部博文(487)

文章存档

2023年(37)

2021年(151)

2020年(37)

2019年(222)

2018年(38)

我的朋友

分类: Oracle

2019-11-27 09:44:09

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 函数来处理。)

阅读(1165) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~