Hello,
I'm not sure if here is the right place to place this question... It's about a complex query that I cannot build... let's try 🙂
There's a table with colum A, B and C.
Colum A contains rows, like:
ROW1: "Abcdef ghijk 395.245.322 lmno pq rstu"
ROW2: "225-427.822 abc defghi lmpo"
ROW3: "ab 157 886.554 dkkkdj sosk"
ROW4: "554 25(52)3 3995 lldfkeke dlkd"
Colum B:
ROW1: "USER1"
ROW2: "USER2"
ROW3: "USER3"
ROW4: "USER4"
I need a query that returns a result, that includes the 4 rows, with the result:
"395245322" and "USER1"
"225427822" and "USER2"
"157886554" and "USER3"
"554255233995" and "USER4"
... that is, maybe with the REPLACE() function replace " ", "(", ")", "." and "-" with "" (nothing = delete), and then return any group of numbers.
In this case, returned numbers can be from any lengh. That's ok.
Would it be possible to return only numbers with 9 chars of lengh? Or this should be parsed with a PHP command?
Another question is: What would happen if ROW1 were...
ROW1: "Abcdef ghijk 395.245.322 lmno pq rstu 21.588(9)553"
... would return "2" numbers? (395245322 and 215889553)
Thank you in advance for your help!
Rgds.