Q&A about the site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles
SELECT TOP ##num?100## a.OwnerUserId AS [User Link], a.OwnerDisplayName, AVG(CAST(a.Score AS decimal)) AS [Average Score], SUM(a.Score) AS [Total Score], COUNT(a.Id) AS [Num Questions] FROM Posts a WHERE (a.PostTypeId=##type?1##) GROUP BY a.OwnerUserId, a.OwnerDisplayName HAVING COUNT(a.Score)>=##min?5## ORDER BY AVG(a.Score) DESC