Use of mysql score table aggregate function
Simply use the aggregate function, the actual check like this is wrong
select * from sc
#统计有多人有成绩
select count(score) from sc
#统计最大成绩值
select max(score) from sc
#统计最小成绩值
select min(score) from sc
#统计平均分数
select avg(score) from sc
#求和
select sum(score) from sc