WITH AcceptedAnswerCounts AS ( SELECT OwnerUserId, COUNT(...

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 AcceptedAnswerCounts AS (
  SELECT OwnerUserId, COUNT(*) AS Count
  FROM Posts
  WHERE Id IN (SELECT AcceptedAnswerId FROM Posts)
  GROUP BY OwnerUserId
)
SELECT Id AS [User Link], Count, Reputation
FROM AcceptedAnswerCounts
INNER JOIN Users ON OwnerUserId=Id
ORDER BY Count DESC, Reputation DESC

Enter Parameters

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