I have a table of ~ 90,000 records. Each record has an SSN field and a incident number field. Can anyone provide a good reference or the like to show how to remove all non-alphanumeric characters?
Right now I have:
I'm sure this isn't close to being correct or efficient but it works for the time being. I just would like some other input on the topic.
Thanks in advance.
Right now I have:
Code:
CREATE PROCEDURE sp_DoStuff AS
UPDATE My_table SET incident_num = REPLACE(incident_num, ' ', ''), <-- Remove whitespace
ssn = REPLACE(ssn,'-','') <-- Remove the dashes from the SSN field
I'm sure this isn't close to being correct or efficient but it works for the time being. I just would like some other input on the topic.
Thanks in advance.