Users having only the given badge and no posts

1

Please login or register to vote for this query.

(click on this box to dismiss)

Biology

Q&A for biology researchers, academics, and students

SELECT
  u.Id AS [User Link], u.CreationDate,
  b.Name,
  u.Reputation,
  u.WebsiteUrl, u.AboutMe
FROM Badges b INNER JOIN Users u ON b.UserId=u.Id 
  LEFT OUTER JOIN Posts p ON u.Id=p.OwnerUserId
WHERE 
  (p.Id IS NULL) AND
  (b.Name='##name?Autobiographer##') AND (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 meta site
loading Hold tight while we fetch your results