我是靠谱客的博主 耍酷蜜粉,这篇文章主要介绍1z0-071 Oracle Database 12c SQL 第43题 NULL、NVL、COUNT,现在分享给大家,希望可以做个参考。

Q43. View the Exhibit and examine the description of the PRODUCT_INFORMATION table.
Which SQL statement would retrieve from the table the number of products having LIST_PRICE as NULL?


A. SELECT COUNT(list_price) FROM product_information WHERE list_price IS NULL;
B. SELECT COUNT(list_price) FROM product_information WHERE list_price = NULL;
C. SELECT COUNT(NVL(list_price, 0)) FROM product_information WHERE list_price IS NULL;

D. SELECT COUNT(DISTINCT list_price) FROM product_information WHERE list_price IS NULL;

Correct Answer: C

count(*) 含 重 复 的和 null

count(expr1) 含 重 复 不 含 null

count(distinct expr1) 不含重复不含 null



最后

以上就是耍酷蜜粉最近收集整理的关于1z0-071 Oracle Database 12c SQL 第43题 NULL、NVL、COUNT的全部内容,更多相关1z0-071内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(54)

评论列表共有 0 条评论

立即
投稿
返回
顶部