select count(*) [questions to be deleted] from ( select p...

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 count(*) [questions to be deleted]
from 
(
select p.id
from posts p
inner join votes v on v.postid = p.id
where v.votetypeid in (2,3)
and p.posttypeid = 1 -- Q
group by p.id
having sum(case when votetypeid = 2 then 1 else 0 end) > ##cutoff:int?7432##
) data

Enter Parameters

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