sql语句求每个班每门课的平均分、最高分、最低分。

是在asp中用,如题
2025-01-07 03:59:25
推荐回答(2个)
回答1:

table
id class chengji
1 1 33
2 1 89
3 2 34
4 2 77

select class avg(chengJi) max(chengji) min(chengJi) from table group by class

回答2:

select banji,avg(fengshu),max(fengshu),min(fengshu) from chengji group by banji