Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to second row, third row ....

904918Dec 13 2011 — edited Dec 15 2011
below query give first row

SELECT ROWNUM,EMPNO,ENAME,SAL FROM EMP
WHERE ROWNUM=1

how to get other i mean second row third row

SELECT ROWNUM,EMPNO,ENAME,SAL FROM EMP
WHERE ROWNUM=2

SELECT ROWNUM,EMPNO,ENAME,SAL FROM EMP
WHERE ROWNUM=3

i want to create view in which i store values of row for exapmle
sal of second row
sal of third row
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 12 2012
Added on Dec 13 2011
24 comments
918 views