High-scoring late answers

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

SELECT a.id AS [Post],
       a.Score,
       q.CreationDate AS [Question Date],
       a.CreationDate AS [Answer Date]
FROM Posts a
INNER JOIN Posts q ON a.ParentId = q.Id  
WHERE
    q.PostTypeId = 1
AND a.PostTypeId = 2
AND datediff(day, q.CreationDate, a.CreationDate) > 0
AND a.score >= 100
--ORDER BY a.CreationDate DESC
ORDER BY datediff(day, q.CreationDate, a.CreationDate) DESC

Enter Parameters

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