Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to strip out non-numeric and append to new column for same row

$
0
0

I have tons of records hat look like this:

462
E08R
E07
E09
E06
360
E04
E11
E02R

Some are numeric, but most are not.

I want to take all alphanumeric records and convert add a column next to the record, which is just the numeric values, and no leading zeros like this:

462
8
7
9
6
360
4
11
2

I don't want to update the data, I just want to create a new column next to the records, with the numerics only.

How can I do that?

Thanks all.


Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>