--月统计 Select SUBSTR(t.BalanceDate,1,6) as Mon, t.RechargeType , SUM(t.SumNum) as SumNum , SUM(t.SumFee) as SumFee From Recharge t Where to_char(to_date(t.BalanceDate,'yyyy-mm-dd'),'yyyymm') BETWEEN to_char(to_date('2016-07-01','yyyy-mm-dd'),'yyyymm')…