Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql count and addition by day

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #count #addition #day
ADD COMMENT
Topic
Name
6+9 =