I have a report that gives the HR people of count of applications received last month. It works fine as long as the month is not January. Can somebody point me in the right direction to fix it so that it works in all cases?
thanks for any suggestions.
select count(*) from applicant where
(to_char(initreceiv,'yyyy') = to_char(sysdate,'yyyy')
and to_char(initreceiv,'mm') = to_char(sysdate,'mm') - 1)
thanks for any suggestions.
select count(*) from applicant where
(to_char(initreceiv,'yyyy') = to_char(sysdate,'yyyy')
and to_char(initreceiv,'mm') = to_char(sysdate,'mm') - 1)