Questions and accepted answers are both first-posts

1

Please login or register to vote for this query.

(click on this box to dismiss)

Moderators

Q&A for community managers, administrators, and moderators

WITH Raw AS (
  SELECT MIN(Id) AS Id
  FROM Posts
  WHERE
    OwnerUserId > 0
  GROUP BY OwnerUserId
)
SELECT Q.Id AS [Post Link], *
FROM Posts Q, Posts A
WHERE
  Q.AcceptedAnswerId = A.Id
  AND
  Q.Id IN (SELECT Id FROM Raw)
  AND
  A.Id IN (SELECT Id FROM Raw)
  AND
  Q.OwnerUserId > 0
  AND
  A.OwnerUserId > 0
  AND
  Q.OwnerUserId != A.OwnerUserId
  AND
  Q.Score > 0
  AND
  A.Score > 0
ORDER BY Q.Score + A.Score DESC, Q.Id

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results