Total number of spam posts/questions/answers

1

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers Meta

Q&A about the site for Drupal developers and administrators

SELECT
  COUNT(p.Id) AS [Count],
  SUM(case when (p.PostTypeId=1) then 1 else 0 end) AS [Questions],
  SUM(case when (p.PostTypeId=2) then 1 else 0 end) AS [Answers]
FROM PostsWithDeleted p INNER JOIN Votes v ON v.PostId = p.Id 
WHERE v.VoteTypeId IN (##types?4,12##) AND p.DeletionDate IS NOT NULL

Enter Parameters

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