I am trying to figure out how to do an Auto-increment based on change in values in a different column as shown below
This is what I am getting right now
OtherID | AUTOINCREMENT
--------+---------------
A | 1
A | 2
B | 3
C | 4
D | 5
D | 6
This is what I am hoping for
OtherID | AUTOINCREMENT
--------+---------------
A | 1
A | 1
B | 2
C | 3
D | 4
D | 4