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

一、原题
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.使用聚合函数的时候,不能对一个以上的列进行分组。

相关文章

迭代器模式(Iterator)迭代器模式(Iterator)[Cursor]意图...
高性能IO模型浅析服务器端编程经常需要构造高性能的IO模型,...
策略模式(Strategy)策略模式(Strategy)[Policy]意图:定...
访问者模式(Visitor)访问者模式(Visitor)意图:表示一个...
命令模式(Command)命令模式(Command)[Action/Transactio...
生成器模式(Builder)生成器模式(Builder)意图:将一个对...