没有合适的资源?快使用搜索试试~ 我知道了~
首页第22讲 SQL语言高级05--分组统计函数.PPT
第22讲 SQL语言高级05--分组统计函数.PPT
需积分: 4 80 浏览量
更新于2023-03-16
评论
收藏 275KB PPT 举报
第22讲 SQL语言高级05--分组统计函数.PPT第22讲 SQL语言高级05--分组统计函数.PPT第22讲 SQL语言高级05--分组统计函数.PPT第22讲 SQL语言高级05--分组统计函数.PPT
资源详情
资源评论
资源推荐

Aggregating Data
Using Group Functions

5-2
Objectives
After completing this lesson, you should be able to
do the following:
•
Identify the available group functions
•
Describe the use of group functions
•
Group data using the GROUP BY clause
•
Include or exclude grouped rows by using the
HAVING clause

5-3
What Are Group Functions?
Group functions operate on sets of rows to give one
result per group.
EMPLOYEES
The maximum
salary in
the EMPLOYEES
table.
…

5-4
Types of Group Functions
•
AVG 平均数
•
COUNT 统计条目数
•
MAX 最大值
•
MIN 最小值
•
STDDEV 取偏差值 , 如果组里选择的内容都相同 , 结果为
0
•
SUM 合计值
•
VARIANCE 取平方偏差值

5-5
SELECT [column,] group_function(column), ...
FROM table
[WHERE condition]
[GROUP BY column]
[ORDER BY column];
Group Functions Syntax
剩余25页未读,继续阅读

















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0