(old, badges) Active users

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

SELECT Month = DATEADD(MONTH, DATEDIFF(MONTH, 0, Date), 0),
       'Active users' = count(distinct UserId)
FROM Badges
INNER JOIN Users
ON Badges.UserId = Users.Id
GROUP BY DATEADD(MONTH, DATEDIFF(MONTH, 0, Date), 0)
ORDER BY Month

Enter Parameters

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