select convert(varchar(2),采集时间,108),count(1) from监测执行表 (nolock)where 采集时间 > convert(varchar(10),getdate(),120)group by convert(varchar(2),采集时间,108)order by 1
采集时间 是今天的,按小时统计数量http://www.w3school.com.cn/sql/func_convert.asp