select * from (select * from table order by time) where rownum=3 or rownum = 4;