suppose I have data like this:
string 1: 003Preliminary Examination Plan
string 2: Coordination005
string 3: Balance1000sheet
The output I expect is
string 1: 003
string 2: 005
string 3: 1000
And I want to implement it in sql. Please help. Thanks in advance :)
Try this one -
Query:
Output:
First create this
UDF
Now use the
function
asSQL FIDDLE
I hope this solved your problem.
Reference
SELECT regexp_replace(column_name,'[^0-9]*','','g');
Query:
In queries you can for replace any character, that it is not a number, with nothing: