Você pode fazer isso usando
lag()
no SQL Server 2012+. No SQL Server 2008, eu recomendaria um join
:select s.*,
(case when s.start between s2.start and s2.end then 1 else 0 end) as flg
from sample s left outer join
sample sprev
on s.id = sprev.id + 1;