You need 500 edited posts to get 'Copy editor' badge and 80 edits to get 'Strunk & White' badge
Q&A for professional and enthusiast programmers
DECLARE @user INT = ##UserId:int## DECLARE @edits INT select @edits=COUNT(*) FROM PostHistory LEFT JOIN Posts as Post on PostHistory.PostId=Post.Id WHERE UserId=@user and Post.OwnerUserId!=@user AND PostHistoryTypeId in (4,5) SELECT @edits, CAST(ROUND(@edits * 1.25, 2) as VARCHAR(10)) + '%' as StrunkAndWhite, CAST(ROUND(@edits / 5.0, 2) as VARCHAR(10)) + '%' as CopyEditor