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)

Emacs

Q&A for those using, extending or developing Emacs

select TOP 10 Users.Id as User_ID, count(Posts.Id) as Most_Posts_Last_5Y
--count(Comments.Id) as Most_Comments_Last_5Y
from Users
join Posts
        on Users.Id = Posts.OwnerUserId
--join Comments
--        on Users.Id = Comments.UserId
--where Posts.CreationDate > 2017-01-24 00:00:00.000 +0000
--and CreationDate > 2017-01-24 00:00:00.000 +0000
group by Users.Id

Enter Parameters

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