1
Efraim 2018-04-26 19:51:37 +08:00
select year ,sum(if(month=1,amount,0)) as m1,sum(if(month=2,amount,0)) as m2,sum(if(month=3,amount,0)) as m3,sum(if(month=4,amount,0)) as m4 from test group by year;
|