Get unclosed questions with closed votes


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 ''+cast(postid as varchar),
       postid, count(*) c
from votes
join posts on votes.postid =
where votetypeid = 6 and closeddate is null
group by postid
having count(*) < 5 and count(*) > 2
order by c desc, postid asc

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results