Questions with the longest time taken to answer

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 500 Id, CreationDate, Score, Title, Tags, DeletionDate,
(
  select min(answer.CreationDate) from Posts answer
  where
    answer.PostTypeId = 2
    
    and answer.parentId = question.id
) as firstAnswerDate,
(
  select datediff(minute, question.creationDate, min(answer.CreationDate)) from Posts answer
  where
    answer.PostTypeId = 2
    and answer.parentId = question.id
) as answerDiff
from Posts question
where
  PostTypeId = 1
  and AnswerCount > 0
order by answerDiff desc;

Enter Parameters

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