Hi,
I have below requirement.
I have many columns in the table and want to generate a sequence number using only one column.
I am not able to use RANK() as I am using GROUP BY in my SQL.
Is there any other way to achieve this:
Input:-
TableA:-
Account - ID
12345 - 9
12345 - 8
98765 - 6
98765 - 4
Expected output:-
Account - ID - SeqNum
12345 - 9 - 1
12345 - 8 - 1
98765 - 6 - 2
98765 - 4 - 2
I want to generate sequence number using Account column as said in the example.
Thanks a lot in advance.
Sagar.
Forums: