Most gold, silver, bronze tag badges


Please login or register to vote for this query.

(click on this box to dismiss)

Ask Different

Q&A for power users of Apple hardware and software

SELECT TOP(##num?200##)
  b.UserId AS [User Link],
  sum(case when b.class = 1 then 1 else 0 end) AS gold,
  sum(case when b.class = 2 then 1 else 0 end) AS silver,
  sum(case when b.class = 3 then 1 else 0 end) AS bronze,
  count(b.Id) AS total
FROM Badges b INNER JOIN tags t ON
ORDER BY gold DESC, silver DESC, bronze DESC, total DESC

Enter Parameters

Switch to meta site
loading Hold tight while we fetch your results