Puoi numerare le righe e poi selezionare prima, ultima o righe che soddisfano condizioni particolari:
;with numbered as (
select row_number() over(order by [time]) rn,
count(*) over() cnt,
*
from Table1
)
select *
from numbered cur
left join numbered prev on cur.rn = prev.rn + 1
left join numbered next on cur.rn = next.rn - 1
where cur.rn in (1, cur.cnt)
or (cur.id = 'start' and prev.id = 'stop')
order by cur.rn;