non-deleted posts with most spam flags

1

Please login or register to vote for this query.

(click on this box to dismiss)

Skeptics

Q&A for scientific skepticism

SELECT TOP ##topn:int?200## P.Id as [Post Link], p.Title, MIN(p.PostTypeId) AS Type, MIN(p.Score) AS score,
   COUNT(*) AS flagcount
FROM PostsWithDeleted p INNER JOIN Votes v ON p.Id=v.PostId
WHERE v.VoteTypeId=12 AND p.PostTypeId = 2 AND p.DeletionDate IS NULL
GROUP BY p.Id, p.Title
ORDER BY flagcount DESC

Enter Parameters

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