rwheeler23
asked on
Update with row count based on a qualifyer
Let's say I have table with these values:
ORDRNMBR,LNITMSEQ,ITEMNMBR ,QTY,FLAG
1000,0,WIDGET,12,1
1000,0,BOXCUTTER,24,1
1000,0,CAMERA,1,0
1000,0,LUNCHBOX,2,1
Flag=1 means add to order. When I am done processing these are rows I want to see
1000,1,WIDGET,12,1
1000,2,BOXCUTTER,24,1
1000,3,LUNCHBOX,2,1
The camera is left off the order and the LNITMSEQ column now has a row number indicating the line counter on the order for the items that are to be included on the order. How do I structure update statement to accomplish this by updating the value for LNITMSEQ?
ORDRNMBR,LNITMSEQ,ITEMNMBR
1000,0,WIDGET,12,1
1000,0,BOXCUTTER,24,1
1000,0,CAMERA,1,0
1000,0,LUNCHBOX,2,1
Flag=1 means add to order. When I am done processing these are rows I want to see
1000,1,WIDGET,12,1
1000,2,BOXCUTTER,24,1
1000,3,LUNCHBOX,2,1
The camera is left off the order and the LNITMSEQ column now has a row number indicating the line counter on the order for the items that are to be included on the order. How do I structure update statement to accomplish this by updating the value for LNITMSEQ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER