select p.Id, count(*) from Posts p left join Votes v on p...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Patents Meta

Q&A about the site for people interested in improving and participating in the patent system

select p.Id, count(*)
from Posts p left join Votes v
on p.id = v.PostId
where v.VoteTypeId = 2
group by p.Id
order by 2 desc

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results