select top 500 Id, CreationDate, (Id) AS [Postid], Score,...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Audio-Video Production Meta

Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation

select top 500 Id, CreationDate, (Id) AS [Postid], Score, Title, Tags,
(
  datediff(minute, question.creationDate, firstAnswerDate)
) as answerDiff
from (
  select *,
  (
    select min(answer.CreationDate) from Posts answer
    where
      answer.PostTypeId = 2
      and answer.DeletionDate is null
      and answer.parentId = question2.id
  ) as FirstAnswerDate
  from Posts question2
  where
    question2.PostTypeId = 1
) question
where
  question.Score > 10
  and datediff(minute, question.creationDate, firstAnswerDate) > 0
  and question.FirstAnswerDate is not null
order by answerDiff asc;

Enter Parameters

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