数查询按日期分组
2011-07-07 17:36
183 查看
--按照月份统计
select count(id) cnt,datepart(mm,time) [Month]
from
select count(id) cnt,datepart(mm,time) [Month]
from