select * from ( select * from table1 t1 where t1.field<1000 order by t1.field ) tmp where rownum <= 10