Time until spam posts were deleted

1

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Different

Q&A for power users of Apple hardware and software

SELECT DISTINCT 
  p.Id AS [Post Link], 
  url = 'site://q/' + CAST(p.Id AS varchar),
  p.CreationDate, p.DeletionDate,
  DATEDIFF(minute, p.CreationDate, p.DeletionDate) AS Minutes,
  p.Score, 
  CASE p.PostTypeId
    WHEN 1 THEN 'Question'
    WHEN 2 THEN 'Answer'
  END,
  p.Tags, p.ViewCount
FROM PostsWithDeleted p INNER JOIN Votes v ON v.PostId=p.Id
WHERE v.VoteTypeId=##votetype?12## 
  AND (p.DeletionDate IS NOT NULL)
ORDER BY p.Id DESC
---1 = AcceptedByOriginator
---2 = UpMod (AKA upvote)
---3 = DownMod (AKA downvote)
---4 = Offensive
---5 = Favorite (AKA bookmark; UserId will also be populated)
---6 = Close (effective 2013-06-25: Close votes are only stored in table: PostHistory)
---7 = Reopen
---8 = BountyStart (UserId and BountyAmount will also be populated)
---9 = BountyClose (BountyAmount will also be populated)
---10 = Deletion
---11 = Undeletion
---12 = Spam
---15 = ModeratorReview (i.e., a moderator looking at a flagged post)
---16 = ApproveEditSuggestion

Enter Parameters

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