By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| @s |
|---|
| ManualBanking-BankDeposit-350-1006590343--INTERNAL_A |
| SUBSTRING_INDEX(@s, '-', -3) |
|---|
| 1006590343--INTERNAL_A |
| SUBSTRING_INDEX(SUBSTRING_INDEX(@s, '-', -3), '-', 1) |
|---|
| 1006590343 |