I have a table where in I m loading whatever is supplied to me in staging table
The staging table
create table stg
(
ID INT IDENTITY(1,1),
NAME VARCHAR(50),
Commaseparated varchar(1000)
)
insert into stg (name,Commaseparated ) values( 'John','
test record one (record1; no HR),test record 2 and test record3 (record3 ; no HR)')
I would like to clean the comma separated column and would like to retain comma only.
Need to clean staging data as currently the csv supplied data dump has lot of unwanted characters ; ) (