Top-scoring self-answered Q&As

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT
  questions.Id AS [Post Link],
  questions.OwnerUserId AS [User Link],
  questions.Score AS 'Q score',
  answers.Score AS 'A score',
  questions.CreationDate
FROM Posts questions
JOIN Posts answers ON answers.ParentId = questions.Id
WHERE questions.OwnerUserId = answers.OwnerUserId
  AND questions.CommunityOwnedDate IS NULL
  AND DATEDIFF(minute, questions.CreationDate, answers.CreationDate) < 5
ORDER BY questions.Score DESC

Enter Parameters

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