Q&A about the site for people interested in the history and origins of science and mathematics
SELECT TOP ##num?100## RANK() OVER(ORDER BY SUM(a.Score) DESC) AS [Rank], a.OwnerUserId AS [User Link], a.OwnerDisplayName, SUM(a.Score) AS [Total Score], COUNT(a.Id) AS [Num Answers], AVG(CAST(a.Score AS decimal)) [Average Score] FROM Posts a GROUP BY a.OwnerUserId, a.OwnerDisplayName ORDER BY SUM(a.Score) DESC