select to_char(c_date,'yyyymm') moth ,sum(price) from table 
group by to_char(c_date,'yyyymm')