I have a query like this:
Select a.*,b.event_code
from f.table1 a join f.table2 on a.id=b.id
where a.nos='807t'
and as_on_date=to_date (
(select event_date from f.table2 where nos='807t'), 'dd/mm/yyyy')
If I run this I get an error:
Function to_date (timestamp without time zone, unknown) does not exist.
Hint: no function matches the given name and argument types.
You might need to add explicit type casts.