Hey everyone,
I use the following code to pull up accounts that have a date of last week.
I want to do the same thing, but for the last full month. So not matter what day the query is run in Feb 2009, I need to pull accounts with a date of jan 2009
I use the following code to pull up accounts that have a date of last week.
Code:
AND tablename.DATEUPDATED between next_day(trunc(sysdate)-13,'SUNDAY') and next_day(trunc(sysdate)-6,'SATURDAY')
I want to do the same thing, but for the last full month. So not matter what day the query is run in Feb 2009, I need to pull accounts with a date of jan 2009