Du kan göra detta med metoden olika-av-radnummer. Skillnaden mellan row_number()
-- med speciella argument -- identifierar grupper. Resten är bara aggregering:
select status, min(time), max(time)
from (select t.*,
(row_number() over (order by time) -
row_number() over (partition by status order by time)
) as grp
from mytable t
) t
group by status, grp;