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)

GenAI Meta

Q&A for GenAI enthusiasts and practitioners and those interested in learning more about using GenAI tools

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

Enter Parameters

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