Spam posts that lasted at least 60 minutes on the site

1

Please login or register to vote for this query.

(click on this box to dismiss)

Bicycles Meta

Q&A about the site for people who build and repair bicycles, people who train cycling, or commute on bicycles

SELECT TOP(##num?5000##)
  'site://revisions/'+cast(p.Id as nvarchar)+'/1' AS [Revisions Link], 
  url = 'site://q/' + CAST(p.Id AS varchar),
  p.Id AS [Post Link],
  COUNT(CASE WHEN v.VoteTypeId = 4 THEN 1 ELSE NULL END) Offensive,
  COUNT(CASE WHEN v.VoteTypeId = 12 THEN 1 ELSE NULL END) Spam,
  p.CreationDate,
  p.DeletionDate,
  DATEDIFF(month, p.CreationDate, p.DeletionDate) AS Months,
  DATEDIFF(day, p.CreationDate, p.DeletionDate) AS Days,
  DATEDIFF(hour, p.CreationDate, p.DeletionDate) AS Hous,
  DATEDIFF(minute, p.CreationDate, p.DeletionDate) AS Minutes
FROM PostsWithDeleted p
INNER JOIN Votes v ON v.PostId = p.Id 
WHERE v.VoteTypeId IN (4,12) AND p.DeletionDate IS NOT NULL
GROUP BY p.Id, p.CreationDate, p.DeletionDate
HAVING DATEDIFF(minute, p.CreationDate, p.DeletionDate)>=##min?60##
ORDER BY p.Id DESC
---ORDER BY DATEDIFF(minute, p.CreationDate, p.DeletionDate) DESC

Enter Parameters

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