Questions with answers which were undeleted most times

1

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

SELECT TOP(##num?500##)
  COUNT(ph.Id) AS [Count],
  ph.PostId AS [Post Link],  
  'site://posts/' + CAST(ph.PostId AS varchar)+'/revisions' AS [Revision History],
  p.Score, p.AnswerCount, p.ViewCount, p.CreationDate, p.Tags
FROM PostHistory ph INNER JOIN PostsWithDeleted p ON p.Id=ph.PostId
WHERE (ph.PostHistoryTypeId=13) AND (p.PostTypeId=1) AND (p.AnswerCount>0)
GROUP BY ph.PostId, p.Score, p.AnswerCount, p.ViewCount, p.CreationDate, p.Tags 
ORDER BY Count(ph.Id) DESC
---12 = Post Deleted - post voted to be removed
---13 = Post Undeleted - post voted to be restored

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results