Norseman
2009-09-04 07:34:36 UTC
OrderID
OOP-200221
POP-39808903
POP-39808903
POP-39808903
IIK-3993
IIK-3993
KOL-3939393930
I want to add an ID column that would show something like this:
1 - OOP-200221
1 - POP-39808903
2 - POP-39808903
3 - POP-39808903
1 - IIK-3993
2 - IIK-3993
1 - KOL-3939393930
(I used the dash to seperate the values, I just want the number in the new ID column and the OrderID to remain in the OrderID column.)
Is there a way to do this with a SQL statement?
Thanks in advance!