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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

SQL statement - unable to retrieve rownum = 2

655578Feb 10 2009 — edited Feb 10 2009
I have a question.

When I run this statement:

select customerid from customertable

I retrieve 3 rows like this:

Customerid

1111
2222
3333

When I run this statement

select Customerid from customertable where rownum = 1

I was able to retrieve

1111

However, when I run this statement

select Customerid from customertable where rownum = 2

I was not able to retrieve 2222 instead it was blank.

Why is it so?
This post has been answered by 554938 on Feb 10 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 10 2009
Added on Feb 10 2009
4 comments
3,893 views