select datediff(minute, p1.CreationDate, p2.CreationDate)...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Woodworking

Q&A for professional and amateur woodworkers

select datediff(minute, p1.CreationDate, p2.CreationDate) , count (*) K 
from Posts p1, Posts p2 
where p1.PostTypeId = 1 and p2.PostTypeId = 2 and p2.ParentId = p1.Id
and p1.AcceptedAnswerId = p2.Id
group by datediff(minute, p1.CreationDate, p2.CreationDate) 
order by datediff(minute, p1.CreationDate, p2.CreationDate) desc

Enter Parameters

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