Top users by total score (including deleted users)

1

Please login or register to vote for this query.

(click on this box to dismiss)

Motor Vehicle Maintenance and Repair Meta

Q&A about the site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles

SELECT TOP(##num?500##)
  p.OwnerUserId AS [User Link],
  p.OwnerDisplayName,
  SUM(p.Score) AS [Total Score],
  SUM(case when p.PostTypeId = 1 then 1 else 0 end) AS [Total Questions],
  SUM(case when p.PostTypeId = 2 then 1 else 0 end) AS [Total Answers],
  SUM(case when p.PostTypeId = 1 then p.Score else 0 end) AS [Score Questions],
  SUM(case when p.PostTypeId = 1 then p.Score else 0 end) AS [Score Answers]
FROM Posts p
GROUP BY p.OwnerUserId, p.OwnerDisplayName
ORDER BY SUM(p.Score) DESC

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results