2. Top 10 most posts and comments last 5 years

0

Please login or register to vote for this query.

(click on this box to dismiss)

Bicycles

Q&A for people who build and repair bicycles, people who train cycling, or commute on bicycles

select top 10 owneruserid, count(*) as post_comm_count 
from posts
join comments on owneruserid = userid
where posts.creationdate between '2019-9-1' and getdate()
and comments.creationdate between '2019-9-1' and getdate()
group by owneruserid order by post_comm_count desc;

Enter Parameters

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