Longest gap between question posting and answer acceptance

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

SELECT TOP 100
  V.PostId AS [Post Link],
  V.CreationDate AS [Accept Date],
  Q.CreationDate AS [Question Date],
  DATEDIFF(second, Q.CreationDate, V.CreationDate) AS [Difference]
FROM Votes V
INNER JOIN Posts A ON (V.PostId=A.Id AND A.PostTypeId=2)
INNER JOIN Posts Q ON (Q.AcceptedAnswerId=A.Id)
WHERE V.VoteTypeId = 1
ORDER BY [Difference] DESC

Enter Parameters

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