--每天数据量
select convert(char(8),date,112) 年月日,COUNT() ROW_COUNT
FROM TableName
group by convert(char(8),date,112)
--每月数据量
select convert(char(6),date,112) 年月,COUNT(*) ROW_COUNT
FROM TableName
group by convert(char(6),date,112)
--如果只有一年,每月数据量也可以如下:
select MONTH(date) 月,COUNT(*) ROW_COUNT
FROM TableName
group by MONTH(date)