I have the following fields:
Column1 Column2
1005 1
1005 2
1005 3
1005 4
1010 1
1010 2
1003 1
1203 2
1203 3
1203 4
...
Is there a way to have Column2 automatically generated, that is, an incremented number that resets to 1 for every changing value in Column1, using only SQL syntax?
Thanks,
Column1 Column2
1005 1
1005 2
1005 3
1005 4
1010 1
1010 2
1003 1
1203 2
1203 3
1203 4
...
Is there a way to have Column2 automatically generated, that is, an incremented number that resets to 1 for every changing value in Column1, using only SQL syntax?
Thanks,