select col1,col2 from (select col1,col2,rownum t from a where rownum<=n+m) where t>=n