select * from ( select rownum rm,a.empno,a.ename from ( select * from emp ) a where rownum<5 ) where rm>2