zoukankan      html  css  js  c++  java
  • 【2019年8月版】OCP 071认证考试原题-第37题

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

  • 相关阅读:
    集体编程智慧(发现的一些代码问题)
    jQuery实现图片伦播效果(淡入淡出+左右切换)
    require
    小技巧
    JavaScript--面向对象--猜拳游戏
    简单封装cookie操作
    less
    进程相关

    线程和进程相关
  • 原文地址:https://www.cnblogs.com/cnblogs5359/p/11939908.html
Copyright © 2011-2022 走看看