Dear All Experts,
I have got a requirement in one of my project where in I have to extract only numbers present in the variable.
for example:
BANK_ACCOUNT_NUMBER = '12345-67890';
BANK_ACCOUNT_NUMBER = '12345 67890';
BANK_ACCOUNT_NUMBER = '123.456.7890';
BANK_ACCOUNT_NUMBER = '123-A456BC7890D';
In all these cases, I need to retrieve only numbers such that BANK_ACCOUNT_NUMBER = 1234567890 and I am looking for SQL query only.
Please suggest me the query how to fetch the numeric values only from a varchar variable.
Thanks,
Karthik