select TOP 10 Users.Id as User_ID, count(Posts.Id) as Mos...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Meta Server Fault

Q&A about the site for system and network administrators

select TOP 10 Users.Id as User_ID, 
count(Posts.Id) as Most_Posts_Last_5Y,
sum(Posts.CommentCount) as Most_Comments_Last_5Y
from Users
join Posts
        on Users.Id = Posts.OwnerUserId
where Posts.CreationDate > '2017-01-24 00:00:00'
group by Users.Id
order by count(Posts.Id) desc, sum(Posts.CommentCount) desc

Enter Parameters

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