Счет и дополнение к SQL
select [Date],sum([Count]) over(order by [Date])
from (SELECT CONVERT(date, u.CreateDate) as [Date], Count(UserId) as [Count]
FROM User as u
GROUP BY CONVERT(date, u.CreateDate)
) x
order by 1
keaoner