I have a column COD with data that looks like this:
| COD |
|---|
| TPP |
| PHONE_9985 |
| SMS@TELL-1256 |
| TEXT@123 |
I want to extract all characters before numeric values, expect result is:
| COD |
|---|
| TPP |
| PHONE |
| SMS@TELL |
| TEXT |
I tried this, but without success:
substr(cod, 1, instr(cod, regexp_replace(cod, '[^0-9]','')))
use built in regexp replace