select distinct users.id, users.displayname, sum(posts.an...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select distinct users.id, 
users.displayname,
sum(posts.answercount)

from users
left join posts 
on users.id = posts.owneruserid
left join votes
on posts.id = votes.postid

group by users.id, users.displayname
having sum(posts.answercount) > 2500
--(select posts.owneruserid from posts where answercount > 2500)

Enter Parameters

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