Number of created accounts per week

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT (datepart(yy, CreationDate) + (datepart(wk, CreationDate)-1) / 52.0) as YR_WK,
COUNT(*) as c  FROM Users

GROUP BY (datepart(yy, CreationDate) + (datepart(wk, CreationDate)-1) / 52.0)
ORDER BY (datepart(yy, CreationDate) + (datepart(wk, CreationDate)-1) / 52.0)

Enter Parameters

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