i have this select :
select P.DT03_DT as PROPOSAL_DATE,
p.dt02_dt as DATE_OF_JUDGEMENT,
P.DT05_DT as END_DATE,
cast('20140704' as date) as Dt
from imxdb.t_intervenants i
join imxdb.g_indivparam p
on i.refindividu = p.refindividu
where p.type = 'BANCRUPTCY'
AND (to_char(p.dt02_dt, 'yyyymmdd') ='20140704' or
to_char(P.DT05_DT, 'yyyymmdd') = '20140704')
and this gives me error :
ORA-01861: literal does not match format string 01861. 00000 - "literal does not match format string"
but when i just commment the line "cast('20140704' as date) as Dt " its working fine, why?
Thank you