select userlist.uid, COUNT(c.Id) as comment_count, avg(c....


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for scholars and enthusiasts of literature

select userlist.uid, COUNT(c.Id) as comment_count, avg(c.Score) as comment_score, datediff(month,cast('2015-03-01' as datetime), c.CreationDate) as month

from Comments c,
(select p.OwnerUserId as uid 
from Posts p,  PostTags pt, Users u
where p.OwnerUserId=u.Id and p.Id=pt.PostId
and (pt.TagId=100570 or pt.TagId=40102 or pt.TagId=109466 or pt.TagId=116033 or pt.TagId=113994 or pt.TagId=24100 or pt.TagId=99347 or pt.TagId=132868)  
and p.PostTypeid=1
and p.CreationDate>=cast('2015-03-01' as datetime) 
and p.CreationDate<=cast('2017-03-31' as datetime) 
group by p.OwnerUserId
) userlist

where userlist.uid=c.UserId and c.CreationDate>=cast('2015-03-01' as datetime) and c.CreationDate<=cast('2017-03-31' as datetime)
group by userlist.uid, datediff(month,cast('2015-03-01' as datetime), c.CreationDate)

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results