zhaozhaode(提问者)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 number
from 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)