Posts with most revisions - with more data about the post

1

Please login or register to vote for this query.

(click on this box to dismiss)

Board and Card Games

Q&A for people who like playing board games, designing board games or modifying the rules of existing board games

SELECT TOP(##num?100##)
  h.PostId AS [Post Link],
  COUNT(DISTINCT h.RevisionGUID) AS Count,
  revisions = 'site://posts/' + CAST(h.PostId AS varchar)+'/revisions',
---  timeline = 'site://posts/' + CAST(PostId AS varchar)+'/timeline'
  p.OwnerUserId AS [User Link], p.OwnerDisplayName,
  p.Score, p.CreationDate, p.ViewCount, p.Tags,
  CASE p.PostTypeId
    WHEN 1 THEN 'Question'
    WHEN 2 THEN 'Answer'
  END
FROM PostHistory h INNER JOIN Posts p ON h.PostId=p.Id
WHERE (p.PostTypeId IN (##types?1,2##))
---types=1: only questions
---types=2: only answers
---types=1,2: both questions and answers
GROUP BY h.PostId, p.OwnerUserId, p.OwnerDisplayName, p.Score, p.CreationDate, p.ViewCount, p.Tags, p.PostTypeId
ORDER BY COUNT(DISTINCT RevisionGUID) DESC

Enter Parameters

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