SELECT u.Id AS UserId, u.Reputation FROM Users u JOIN Pos...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Psychology and Neuroscience

Q&A for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

SELECT 
    u.Id AS UserId, 
    u.Reputation
FROM Users u
JOIN Posts p ON u.Id = p.OwnerUserId
WHERE p.PostTypeId = 2 -- Only answers
  AND NOT EXISTS (
      SELECT 1 
      FROM Posts p2 
      WHERE p2.PostTypeId = 1 -- Users with questions
        AND p2.OwnerUserId = u.Id
  )
GROUP BY u.Id, u.Reputation
HAVING COUNT(p.Id) > 10 -- At least 10 answers
ORDER BY u.Reputation DESC; -- Sort by reputation

Enter Parameters

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