Skip to Main Content

Oracle Developer Tools for VS Code

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!

oracle pl/sql add number rows

ramesh kumarApr 22 2022

Hi,
In my table contains 50 rows. I want to select add number rows like 1,3,5,7 ... rows only.
can any one give me query

Comments

I think you mean "odd numbered".
Anyway, here is an example:
select * from (select ename,job, ROWNUM AS rn from emp) where mod(rn, 2) <> 0;

1 - 1

Post Details

Added on Apr 22 2022
1 comment
209 views