Edits on posts by others (users from a list)

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow Meta en español

Preguntas y respuestas sobre el sitio para programadores y profesionales de la informática

SELECT
  COUNT(DISTINCT RevisionGUID) AS Count,
  COUNT(DISTINCT p.Id) AS Posts,
  h.UserId AS [User Link],
  h.UserDisplayName
FROM PostHistory h JOIN Posts p ON h.PostId=p.Id
WHERE (p.PostTypeId in (1,2))
---only questions and answers
  AND (h.PostHistoryTypeId in (1,2,3,4,5,6,7,8,9))
---only edit and rollbacks  
  AND (h.UserId IN (##list?2362,5101,7206,20302,21326,80790,92164,120914##))
---not my own posts
  AND (h.UserId<>p.OwnerUserId)
GROUP BY h.UserId, h.UserDisplayName
ORDER BY COUNT(DISTINCT RevisionGUID) DESC

Enter Parameters

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