Hi All,
I have following table.
Row | Batch_Suffix |
1 | 710001 |
4 | 710002 |
6 | 710003 |
10 | 710004 |
15 | 710005 |
16 | 710006 |
20 | 710007 |
24 | 710011 |
27 | 710012 |
30 | 710013 |
33 | 710014 |
36 | 710015 |
40 | 710016 |
I need to add the difference column as follows.
Row | Batch_Suffix | RowDifference |
1 | 710001 | 3 |
4 | 710002 | 5 |
6 | 710003 | 9 |
10 | 710004 | 14 |
15 | 710005 | 15 |
16 | 710006 | 19 |
20 | 710007 | 23 |
24 | 710011 | 26 |
27 | 710012 | 29 |
30 | 710013 | 32 |
33 | 710014 | 35 |
36 | 710015 | 39 |
40 | 710016 |
Many thanks in advance.
Ali