Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for active researchers, academics and students of physics

--accepted answer

select top 100 * from (
select a.*,
row_number() over (partition by a.Id order by b.CreationDate) as r
from Posts a inner join Posts b
on a.PostTypeId = 1
and b.PostTypeId = 2
and b.ParentId = a.Id
and DATEDIFF(mi,a.CreationDate,b.CreationDate) < ##MaxDuration##
) as FG
where r = 1

Enter Parameters

Switch to meta site
loading Hold tight while we fetch your results