Get number of questions for each amount of close votes

1

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 c, count(*)
from
(
select postid, count(*) c
from votes
join posts on votes.postid = posts.id
where votetypeid = 6 and closeddate is null
group by postid
) a
group by c;

Enter Parameters

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