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!

Rownum reset at data change

741402Feb 4 2010 — edited Feb 4 2010
Hi,

i have data like this

rownum col1
1 1
2 1
3 2
4 2
5 2
6 2

and i wanna to reset rownum at every change of col1 like this


rownum col1
1 1
2 1
1 2
2 2
3 2
4 2

How i could achieve that?

Regards,
Igor
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 4 2010
Added on Feb 4 2010
3 comments
7,465 views