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!

Update the vale with increments of 10

AmivaMar 5 2019 — edited Mar 7 2019

Actual

deptid.  product id.  part no   Sortnumber

10           100             123

10           100              234

——————————-—

10         200           456

10        200                234

———-

20          100            234

20           200           456

assign sort number from 610 with increments 10 with group of combination dept id  and product id

Order by partnuber . How can i update sort number to get expected output below

Expected output

deptid.  product id. part no   Sortnumber

10       100           123          610

10         100          234            620

——————————-—

10          200             234       610

10       200                456        620

———-

20            100           234         610

———

20             200            456        610

This post has been answered by Cookiemonster76 on Mar 5 2019
Jump to Answer
Comments
Post Details
Added on Mar 5 2019
10 comments
185 views