$ 0 0 SEL ADD_MONTHS(CURRENT_DATE-EXTRACT(DAY FROMCURRENT_DATE),1); will have problem for date '2012-03-01'(March). Solution is Vikas's query.