Hi,
I have a table as following
SSN Amount
1 101
1 210
1 120
2 220
2 150
2 300
Is there a way that I can have them grouped by SSN and number them starting from 1 to 3.
The number of records in a group are fixed. (like in above case, it is 3).
The following table is required
row_num SSN Amount
1 1 101
2 1 210
3 1 120
1 2 220
2 2 150
3 2 300