List of top 100 questions having delete votes which are not yet deleted by votes remaining


Please login or register to vote for this query.

(click on this box to dismiss)

Craft CMS Meta

Q&A about the site for administrators, end users, developers and designers for Craft CMS

SELECT TOP 10 p.Id As [Post Link], Count(v.VoteTypeId) As DeleteVotes,
p.Score + (Sum(a.Score) /20) as VotesNeededToDelete
  --Sum(a.Score) AS AnswerScore
FROM Votes AS v
INNER JOIN Posts AS p ON v.PostId=p.Id
INNER JOIN Posts as a on a.ParentId =
WHERE v.VoteTypeId=10
GROUP BY p.Id, p.Score
HAVING Count(v.VoteTypeId)>0
--ORDER BY DeleteVotes DESC

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results