oracle中,求平均值用avg函数。

工具:oracle 10g

步骤:

1、数据库中有test表数据如下:
oracle求平均值
2、求出这些人的平均grade,需要用以下语句:

select avg(grade) 平均成绩 from test;

相关文章: