I have a varchar(20)
column in SQL that contains some values with letters in the beginning and/or end of the value (i.e. AD5376276 or AD574638BD or 324523BD).
I want to eliminate any letters from these values in this column so the result will be only numeric character values. I am doing this in SQL.
I have being trying something along the lines of this in SQL
SELECT
LTRIM('%[a-z]%', txn.transaction_number)
RTRIM(txn.transaction_number, '%[a-z]%')
FROM
arrt.tblAgingTransactionDetail_DailyR txn;
Thanks!