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 create rownum or auto number

skymonster84Dec 22 2009 — edited Dec 23 2009
Hi All,

I got some problem in create rownum or auto number in following table condition.

eg.

MeasID PosID Desc
==== ====== ===
P01 1 Abc
P01 1 Cde
P01 2 Abc
P01 2 Efg
P01 2 Xyz

in select statement, I would like to make it look like:
Num MeasID PosID Desc
=== ==== ====== ===
1 P01 1 Abc
2 P01 1 Cde
1 P01 2 Abc
2 P01 2 Efg
3 P01 2 Xyz

How can I create a running number and make like some short like group by PosID?
This post has been answered by Solomon Yakobson on Dec 22 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 20 2010
Added on Dec 22 2009
4 comments
1,248 views