Get unclosed questions with closed votes

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

Enter Parameters

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