Users with only one badge

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow Meta en español

Preguntas y respuestas sobre el sitio para programadores y profesionales de la informática

SELECT
  u.Id AS [User Link],
  b.Name,
  u.Reputation, u.CreationDate,
  u.WebsiteUrl, u.AboutMe
FROM Badges b INNER JOIN Users u ON b.UserId=u.Id  
WHERE u.Id IN (SELECT us.Id
  FROM Badges ba INNER JOIN Users us ON ba.UserId=us.Id
  GROUP BY us.Id
  HAVING COUNT(ba.Id)=1
  )  
ORDER BY u.Id DESC

Enter Parameters

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