Q&A for professional and enthusiast programmers
SELECT TOP 250 PostHistory.UserId [User Link] , count(*) as [FlagCount] FROM PostHistory WHERE PostHistory.UserId = ##UserId## AND PostHIstory.PostHistoryTypeId in (10,11,12,13,14,15,19,20) GROUP BY PostHistory.UserId ORDER BY count(*)desc