Hi,
Simplest way is:
select * from emp where rownum <= 10 order by rownum asc;
But if you need to compare the information retrieved, use MINUS .. you may use:
select * from emp e ,( select empno,rownum num from emp order by 1 asc) x
where E.EMPNO = x.empno
and x.num <= 10;
Hope it helps.
Cheers,
Paul
Leave a comment: