I would like to create a sequence number based on some of the columns. In the example below I would like to group on Column1 and Column2 without losing the data in Column3.
Column1 Column2 Column3
A SharedData Data1
A SharedData Data2
A SharedData Data3
B SharedData Data1
B SharedData Data2
B SharedData Data3
Expected results
Seq Column1 Column2 Column3
1 A SharedData Data1
2 A SharedData Data2
3 A SharedData Data3
1 B SharedData Data1
2 B SharedData Data2
3 B SharedData Data3
I read around and I tried out ROW_NUMBER(), DENSE_RANK() and RANK() but I'm not sure if those work or how one would implement those in my case.
Is it possible to get the expected result?