select 业务范围,count(流水号) as 舆情数
from 舆情表
group by 业务范围
union all
select '总计' ,count(流水号) as 舆情数 from 舆情表
在报表里加个合计就行了,sql这么写没问题。