您的位置:首页 > 其它

OCP-1Z0-051 补充题库 第40题 聚合函数的使用

2014-10-26 22:54 411 查看
一、原题

Which two are true about aggregate functions? (Choose two.)
A. You can use aggregate functions in any clause of a SELECT statement.
B. You can use aggregate functions only in the column list of the select clause and in the WHERE

clause of a SELECT statement.

C. You can mix single row columns with aggregate functions in the column list of a SELECT

statement by grouping on the single row columns.
D. You can pass column names, expressions, constants, or functions as parameter to an

aggregate function.

E. You can use aggregate functions on a table, only by grouping the whole table as one single

group.

F. You cannot group the rows of a table by more than one column while using aggregate

functions.

答案: A,D

二、题目翻译

下面关于聚合函数的描述,哪两个是正确的?(选择2个)

A.可以在SELECT语句的任何一个子句中使用聚合函数。

B.只能在SELECT语句的列的列表中和WHERE子句中使用聚合函数。

C.可以在有group by单行列的语句中的SELECT子句中混合使用单行列和聚合函数。

D.可以使用列名、表达式、常量或函数来做为聚合函数的参数。

E.只有在整个表的数据作为一个分组时,可以在表中使用聚合函数。

F.使用聚合函数的时候,不能对一个以上的列进行分组。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息