Hello,
Consider this as a oracle Query
[start]
select fg.PROJECT_ID id
from fgt_assignments fg
where to_char(fg.UPDATED_ON,'mm-dd-yyyy') >= to_char(CURRENT_DATE - 1,'mm-dd-yyyy')
-- and to_char(fg.UPDATED_ON,'mm-dd-yyyy') <= to_char(CURRENT_DATE,'mm-dd-yyyy')
union
select tp.PROJECT_ID id
from tpt_expenses tp
where to_char(tp.UPDATED_ON,'mm-dd-yyyy') >= to_char(CURRENT_DATE - 1,'mm-dd-yyyy')
-- and to_char(tp.UPDATED_ON,'mm-dd-yyyy') <= to_char(CURRENT_DATE,'mm-dd-yyyy')
[end]
can anyone of you convert this into db2 Query, I did try it using cast() method into char but didn't work. Is there any other way to go about this.
Thanks