I have a table with ID and sequence # (SEQ) starting number. I want to update SQ number for each ID based on the SEQ
My table like this
ID SQ SEQ
--- -- ---
100 0 11
100 0 11
100 0 11
200 0 13
200 0 13
200 0 13
200 0 13
I want to get result table like this:
ID | SQ | SEQ
100 11 11
100 12 11
100 13 11
200 13 13
200 14 13
200 15 13
200 16 13
How can I do this using TSQL?