DB2写法:
and to_date(op_month, 'yyyy-mm') <= to_date('2011-06', 'yyyy-mm')
and to_date(op_month, 'yyyy-mm') >
(to_date('2011-06', 'yyyy-mm') - 12 month)
Oracle写法:
and cu.op_month >
to_char(add_months(to_Date('2011-06', 'yyyy-mm'), -12), 'yyyy-mm')
and cu.op_month <= '2011-06'