Shows the number of edits a specific user has made.
Q&A about the site for members of the workforce navigating the professional setting
-- 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'