Why do you expect 7/1/2010 if you go back 26 month from 8/31/2012?
I would expect 6/30/2012
which you get via
select cast('2012-08-30' as date) as base_dt,
add_months(base_dt+1,-26)
↧