fix(guide): simplify directory structure

This commit is contained in:
Mrugesh Mohapatra
2018-10-16 21:26:13 +05:30
parent f989c28c52
commit da0df12ab7
35752 changed files with 0 additions and 317652 deletions

View File

@@ -0,0 +1,25 @@
---
title: SQL Avg Function
localeTitle: SQL平均功能
---
## SQL平均AVG功能
“Average”是AggregateGroup By函数。它用于计算SQL语句返回的行集中的数字列的平均值。
以下是使用该函数的语法:
```sql
select groupingField, avg(num_field)
from table1
group by groupingField
```
以下是使用学生表的示例:
```sql
select studentID, FullName, avg(sat_score)
from student
group by studentID, FullName;
```
![图像-1](https://github.com/SteveChevalier/guide-images/blob/master/avg_function01.JPG?raw=true)