原创 SQL行轉列顯示

select country, sum(case when type='A' then money end) as A,sum(case when type='B' then money end) as B,sum(case when ty