原创 SQL的彙總統計SELECT語句

select Site,sum(case when type='item01' then 1 else 0 end) as item01, sum(case when type=item02' then 1 else 0 end) as i