计算出数据记录的参数的最大值与最小值,比如最小值1100 最大值1300 ,将1100到1300分为10段 1100-1120,1120-1140等等然后统计出落在各个区间的记录的个数。select cast(MIN(a.fParaValue)as varchar(20))+'-'+cast((MIN(a.fParaValue)+(MAX(a.fParaValue)-MIN(a.fParaValue))/10 )as varchar(20)) as 分段 ,COUNT(b.sParaName) as numberfrom dbo.Para_erecord a inner join dbo.Para_type b ON a.fkiParaID = b.ID INNER JOIN dbo.workstation_type AS c ON b.fkiWorkstationID = c.ID INNER JOIN dbo.zone_type AS d ON c.sZoneName = d.sZoneName where sParaName = '电泳膜耐盐雾性' group by cast(MIN(a.fParaValue)as varchar(20))+'-'+cast((MIN(a.fParaValue)+(MAX(a.fParaValue)-MIN(a.fParaValue))/10 )as varchar(20)) having a.fParaValue between MIN(a.fParaValue) and (MIN(a.fParaValue)+(MAX(a.fParaValue)-MIN(a.fParaValue))/10)sql语句这样写的,但是 group by 后面不能跟我写的那些含有聚合函数的语句,应该怎么修改呢