加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-13 22:44:01 所属栏目:百科 来源:网络整理
导读:一、原题 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 c
一、原题
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.使用聚合函数的时候,不能对一个以上的列进行分组。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读