Hi - I'm getting error ORA-01841 ((full) year must be between -4713 and 9999, and not be 0) due to the following line in my where clause:
AND p_run_date < nvl((add_months(ip.insured_plan_termination_date,13)),to_date('31-DEC-9999','DD-MON-YYYY'))
I've search and everything I've read talks about not comparing strings with dates, but that's not happening here. p_run_date is definitely a date. I've even hardcoded in a specific date and I still get the error.
Any help is greatly appreciated.
Thanks,
Christine