题目内容

中国共产主义青年团团歌的主要人物是“”和“”

查看答案
更多问题

数据查询语句中,对查询结果记录进行分组的是

A. from
B. group by
C. order by
D. where

下列哪个聚合函数的功能是求平均值

A. SUM
B. MAX
C. AVG
D. count

以下哪一项不属于聚合函数。

A. SUM
B. IN
COUNT
D. MIN

假设Sales表用于存储销售信息,sal_name列为销售人员姓名,sal_money列为销售额度,现在要查询每个销售人员的销售次数,销售总金额,则下面的( )语句可以实现这些功能。

A. SELECT sal_name,SUM(sal_money),COUNT(sal_name) FROM Sales GROUP BY sal_name
B. SELECT sal_name,SUM(sal_money),COUNT(sal_name) FROM Sales ORDER BY sal_name
C. SELECT sal_name,AVG(sal_money),COUNT(sal_name) FROM Sales
D. SELECT sal_name,SUM(sal_money) FROM Sales GROUP BY sal_name ORDER BY sal_name

答案查题题库