Most controversial posts on the site

0

Please login or register to vote for this query.

(click on this box to dismiss)

Looks for posts with more than half the amount of downvotes as they have upvotes Ordered by upvotes

Health Meta

Q&A about the site for professionals in medical and allied health fields, students of those professions, related academics, and others with a sound understanding of medicine and healthcare-related sciences

set nocount on 

declare @VoteStats table (PostId int, down int) 

insert @VoteStats
select
    PostId, 
   
    down = sum(case when VoteTypeId = 3 then 1 else 0 end)
from Votes
where VoteTypeId in (3)
group by PostId

set nocount off


select top 100 p.id as [Post Link] , down from @VoteStats 
join Posts p on PostId = p.Id
where down > 50
order by down desc

Enter Parameters

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