user participation

2

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

SELECT Count(UserId) usercount, 
       yr, 
       wk 
FROM   (SELECT UserId, 
               Year(CreationDate)         yr, 
               Datepart(wk, creationDate) wk 
        FROM   Comments 
        UNION 
        SELECT UserId, 
               Year(CreationDate)         yr, 
               Datepart(wk, creationDate) wk 
        FROM   PostHistory
        UNION 
        SELECT OwnerUserId, 
               Year(CreationDate)         yr, 
               Datepart(wk, creationDate) wk 
        FROM   Posts) t 
GROUP  BY yr, 
          wk 
ORDER BY
        yr, wk

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results
:records returned in :time ms:cached