Users over time by week

0

Please login or register to vote for this query.

(click on this box to dismiss)

Number of new users per week.

Literature

Q&A for scholars and enthusiasts of literature

with Weekly as (
    select dateadd(dd, 1 - datepart(dw, CreationDate), cast(CreationDate as Date)) as Week,
           count (*) WeekCount
    from Users
    group by dateadd(dd, 1 - datepart(dw, CreationDate), cast(CreationDate as Date))
)
select Week,
       WeekCount
       --, sum(WeekCount) over (order by Week rows 10000 preceding) as Cumulative
from Weekly
order by Week

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results