Don't touch my junk.


Please login or register to vote for this query.

(click on this box to dismiss)

Code Review

Q&A for peer programmer code reviews

select q.Id as [Post Link],
       count (v.Id) as DownVotes
from Posts q
     inner join Posts a on q.AcceptedAnswerId = and a.PostTypeId = 2
     inner join votes v on q.Id = v.PostId and v.VoteTypeId = 3

where q.PostTypeId = 1
  and q.ClosedDate is null
  and q.AcceptedAnswerId is not null
  and q.score >= 25
  and a.score >= 25
group by q.Id, q.score, a.score

Enter Parameters

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