日期:2014-05-18 浏览次数:20775 次
select id from tbl group by id having avg(score)>60
------解决方案--------------------
select * from ( select max(ID) ID ,avg(fenshu) AvgFen from tb group by ID ) as tb1 where AvgFen>60
------解决方案--------------------
select id from record group by id having avg(fenshu)>60