Order users by Badges


Please login or register to vote for this query.

(click on this box to dismiss)

Will count the amount of badges a user has (Gold, Silver, Bronze) and rank them by it.

Network Engineering

Q&A for network engineers

SELECT DisplayName AS Name,COUNT(badges.id) AS Badges FROM users,badges 
 WHERE users.id = badges.UserId 
  GROUP BY DisplayName 
   HAVING count(badges.id) > 100 
    ORDER BY Badges DESC

Enter Parameters

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