select PostId, count(Votes.Id) as Upvotes from Votes wher...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

select PostId, count(Votes.Id) as Upvotes from Votes where VoteTypeId = 2 group by PostId

Enter Parameters

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