New users by month

0

Please login or register to vote for this query.

(click on this box to dismiss)

MathOverflow

Q&A for professional mathematicians

SELECT
  DATEADD(mm, (Year(Users.CreationDate) - 1900) * 12 + Month(Users.CreationDate) - 1, 0) AS Month,
  COUNT(*) AS NewUserCount
  
FROM Users

WHERE
--  Users.Reputation >= 200 AND
  Users.CreationDate < DATEADD(month, DATEDIFF(month, 0, GETDATE()), 0)

GROUP BY
  Year(Users.CreationDate), Month(Users.CreationDate)

ORDER BY
  Year(Users.CreationDate), Month(Users.CreationDate)

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results