原图如上
需要做成如下效果:
select xmmc 名称
,case when month ='09' then ycz else 0 end "9月"
,case when month ='10' then ycz else 0 end "10月"
,case when month ='11' then ycz else 0 end "11月"
from table
month字段 横向扩展即可
--------------
WorkBook1.zip参考文件
直接在报表中将月份横向扩展。。然后把对应的字段拖上去就行了