Q&A about the site for enthusiasts and power users of the Android operating system
select datediff(mi, p1.CreationDate, p2.CreationDate) AADelay, count (*) K , min (p1.Id) minp1Id, min (p2.Id) minp2Id from Posts p1 inner join Posts p2 on p1.AcceptedAnswerId = p2.Id where p1.PostTypeId = 1 and p2.PostTypeId = 2 and p2.ParentId = p1.Id and p1.OwnerUserId is not null and p2.OwnerUserId is not null group by datediff(mi, p1.CreationDate, p2.CreationDate) having datediff(mi, p1.CreationDate, p2.CreationDate) > 0 order by datediff(mi, p1.CreationDate, p2.CreationDate)