Posts with most edits


Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers Meta

Q&A about the site for Drupal developers and administrators

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'
FROM PostHistory h INNER JOIN Posts p ON h.PostId=p.Id
WHERE h.PostHistoryTypeId IN (##list?1,2,3,4,5,6,7,8,9##)
GROUP BY h.PostId, p.OwnerUserId, p.OwnerDisplayName, p.Score, p.CreationDate, p.ViewCount, p.Tags, p.PostTypeId

---1 = Initial Title - initial title (questions only)
---2 = Initial Body - initial post raw body text
---3 = Initial Tags - initial list of tags (questions only)
---4 = Edit Title - modified title (questions only)
---5 = Edit Body - modified post body (raw markdown)
---6 = Edit Tags - modified list of tags (questions only)
---7 = Rollback Title - reverted title (questions only)
---8 = Rollback Body - reverted body (raw markdown)
---9 = Rollback Tags - reverted list of tags (questions only)

Enter Parameters

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