ITPub博客

首页 > 数据库 > Oracle > OCP 1Z0-051-108

OCP 1Z0-051-108

原创 Oracle 作者:LuiseDalian 时间:2014-05-20 07:14:25 0 删除 编辑
(108)Which two statements are true regarding the COUNT function? (Choose two.)

A. The COUNT function can be used only for CHAR, VARCHAR2, and NUMBER data types.

B. COUNT(*) returns the number of rows including duplicate rows and rows containing NULL value in any of the columns.

C. COUNT(cust_id) returns the number of rows including rows with duplicate customer IDs and NULL value in the CUST_ID column.

D. COUNT(DISTINCT inv_amt)returns the number of rows excluding rows containing duplicates and NULL values in the INV_AMT column.

E. A SELECT statement using the COUNT function with a DISTINCT keyword cannot  have  a WHERE clause.

答案:(B、D)

解析:

C(X),包含重复的值,但不包含空值。

E(X),可以有WHERE子句,先过滤掉不需要的行。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1164754/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: OCP 1Z0-051-106
下一篇: OCP 1Z0-051-102
请登录后发表评论 登录
全部评论

注册时间:2012-02-06

  • 博文量
    1986
  • 访问量
    6040916