SELECT * FROM ( SELECT Name as name, COUNT(UserID) as bad...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Meta Stack Exchange

Q&A for meta-discussion of the Stack Exchange family of Q&A websites

SELECT * FROM (
SELECT
  Name as name,
  COUNT(UserID) as badge_count
FROM BADGES b
GROUP BY b.Name) aa
WHERE aa.badge_count > 20
ORDER BY aa.badge_count DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results