簡單統計sql

select A.YY,        sum(decode(A.mm, '01', A.NUM, 0)) as 一月,        sum(decode(A.mm, '02', A.NUM, 0)) as 二月,        sum(decode(A.mm, '03', A.NUM, 0)) as 三月,        sum(decode(A.mm, '04', A.NUM, 0)) as
相關文章
相關標籤/搜索