Q&A about the site for software engineers working on automated testing, continuous delivery, service integration and monitoring, and building SDLC infrastructure
SELECT TOP(##num?500##) q.OwnerUserId AS [User Link], q.OwnerDisplayName, COUNT(q.Id) AS Count, SUM(q.Score) AS Score, AVG(CAST(q.Score AS decimal)) [Average Score] FROM Posts q WHERE q.Id IN (SELECT p.Id FROM Posts p JOIN PostHistory ph ON p.Id=ph.PostId WHERE (ph.PostHistoryTypeId=52)) GROUP BY q.OwnerUserId, q.OwnerDisplayName ORDER BY COUNT(q.Id) DESC