For a single id
column, we have sequence number 01, 02, 03 upto 99 repeating twice /thrice.
Example:
ID SEQ_NO
----------
2 01
2 02
2 03
.
.
.
2 99
2 01
2 02
2 99
We have a requirement to add AA
prefix to second time when it is looping on seq_no
, and for third time it should be BB
.
Can anyone explain how to do this?