select Users.DisplayName,sum(votes.VoteTypeid) as "No. of...

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 Users.DisplayName,sum(votes.VoteTypeid) as "No. of Upvotes"
from Users join Posts
on Users.id = Posts.OwnerUserId
join Votes
on Posts.id = Votes.PostId
where Votes.creationdate between '2011-03-27' and '2011-04-02'
and Votes.VoteTypeid = 2
group by Users.DisplayName 
order by sum(Votes.VoteTypeid) desc

Enter Parameters

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