Q&A about the site for Ubuntu users and developers
DECLARE @UserId int = ##UserId## SELECT COUNT(*) AS 'Edits' FROM Posts WHERE PostTypeId in (1,2) AND LastEditorUserId = @UserId AND OwnerUserId != @UserId