sqlでpivotテーブル SELECT a,b,c ,'aa','bb','cc' from abc PIVOT (" sum(ddd) FOR a IN ( ,'aa','bb','cc') ) AS PV