Q&A for professional and enthusiast programmers
select count(*) as TotalEdits from Posts join PostTypes on Posts.PostTypeId = PostTypes.Id join PostHistory on Posts.id = PostHistory.PostId join PostHistoryTypes on PostHistory.PostHistoryTypeId = PostHistoryTypes.Id where PostHistory.UserId = ##UserId## and Posts.OwnerUserId != PostHistory.UserId and PostTypes.Name in ('Question', 'Answer') and PostHistoryTypes.Name in ('Edit Title', 'Edit Body', 'Edit Tags')