SELECT u.DisplayName, u.Id, u.Location, u.Reputation, Cou...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Space Exploration

Q&A for spacecraft operators, scientists, engineers, and enthusiasts

SELECT u.DisplayName, u.Id, u.Location, u.Reputation, Count(DISTINCT b.Id) AS BadgeCount
FROM Users AS u
LEFT JOIN Badges AS b ON u.Id = b.UserId
WHERE u.Reputation >= 500000
GROUP BY u.Id, u.DisplayName, u.Location, u.Reputation
ORDER BY u.Reputation DESC

Enter Parameters

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