对数据进行分组统计
group by <分组依据列>[1,,,,n]
[HAVING <组提取条件>]
select Sno , sum(Grade) from SC
group by Sno having sum(grade)>200
对于表格的修改
对数据进行分组统计
group by <分组依据列>[1,,,,n]
[HAVING <组提取条件>]
select Sno , sum(Grade) from SC
group by Sno having sum(grade)>200
对于表格的修改