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.

Assigning sequence number based on two columns.

Venu GopalanAug 25 2024

I have a table with 4 columns,

itemcode (char(16)),

dattim(date time),

billamount(number(7,2)),

seqno(number(3).

all the columns are filled except seqno which has null values at present.

I have to fill the seqno column with 1,2,3,4,5,…… etc. for each itemcode in ascending order of dattim.

How can it be done through sql.

Any help is appreciated.

Comments
Post Details
Added on Aug 25 2024
9 comments
124 views