Shows the number of edits a specific user has made.
Q&A for anime and manga fans
-- Number of Edits -- Shows the number of edits a specific user has made. DECLARE @UserId int = ##UserId## SELECT ( SELECT COUNT(*) FROM posts WHERE LastEditorUserId = @UserId AND OwnerUserId != @UserId AND PostTypeId = 1 ) AS 'Question Edits', ( SELECT COUNT(*) FROM posts WHERE LastEditorUserId = @UserId AND OwnerUserId != @UserId AND PostTypeId = 2 ) AS 'Answer Edits', ( SELECT COUNT(*) FROM posts WHERE LastEditorUserId = @UserId AND OwnerUserId != @UserId ) AS 'Total Edits'