I have a source application which is using varchar type to store dates. All the dates are supposed to be in yyyymmdd form.
So now, when I run this query
select (case when PLE_DATE = '00000000' then null else to_date(PLE_DATE,'yyyymmdd') end) PLE_DATE
from PLE_DATE_TAB
i'm able to see the data from sqldeveloper perfectly fine. But when i'm trying to insert this data into another table with target as date column. It is throwing error date of month must be between 1st and last day of the month. I'm struggling to figure this out . Any help is much appreciated. Both source and target tables are in oracle db.