分组求中位数 分组求中位数 select c.age,avg(r.AMOUNT) as AMOUNT from (select a.age ,a.AMOUNT,(select count(1) from testzhongweishu where age=a.age and (AMOUNT