tableid class chengji1 1 332 1 893 2 344 2 77select class avg(chengJi) max(chengji) min(chengJi) from table group by class
select banji,avg(fengshu),max(fengshu),min(fengshu) from chengji group by banji