WITH GoldBadges AS ( SELECT UserId, COUNT(*) AS c FROM Ba...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

WITH GoldBadges AS (
  SELECT UserId, COUNT(*) AS c FROM Badges WHERE Class = 1
  GROUP BY UserId
)
SELECT * FROM GoldBadges

Enter Parameters

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