I have excel file that contains some junk data in date field.
the date format is in 1/2/2015 format. I'm trying to load that file into a stage table in varchar field and apply regex replace function to clean up the bad data before loading to main table
can i somebody provide me the suitable experssion for this
create table A
(
bad_date varchar2(4000)
);
insert into A
( bad_date)
values ('1/2/2005');
insert into A
( bad_date)
values ('indep');
insert into A
( bad_date)
values ('/');
commit;
create table B
(
good_date date
);
I want to use regex function to cleanse the data which is not in the date pattern. Thanks for your help!