一、原题
二、题目翻译
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
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.使用聚合函数的时候,不能对一个以上的列进行分组。
A.可以在SELECT语句的任何一个子句中使用聚合函数。
B.只能在SELECT语句的列的列表中和WHERE子句中使用聚合函数。
C.可以在有group by单行列的语句中的SELECT子句中混合使用单行列和聚合函数。
D.可以使用列名、表达式、常量或函数来做为聚合函数的参数。
E.只有在整个表的数据作为一个分组时,可以在表中使用聚合函数。
F.使用聚合函数的时候,不能对一个以上的列进行分组。