Average time until spam posts were deleted


Please login or register to vote for this query.

(click on this box to dismiss)

Physical Fitness Meta

Q&A about the site for physical fitness professionals, athletes, trainers, and those providing health-related needs

;  with spam_cte as
  p.Id AS pid,
  DATEDIFF(minute, p.CreationDate, p.DeletionDate) AS Minutes
FROM PostsWithDeleted p INNER JOIN Votes v ON v.PostId=p.Id
WHERE v.VoteTypeId=##votetype?12## 
AND (p.DeletionDate IS NOT NULL))

  AVG(CAST(minutes AS decimal)) AS [Average],
  MAX(minutes) AS [Maximum]
FROM spam_cte

Enter Parameters

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