日期:2014-05-17 浏览次数:20811 次
select name, sum(decode(lb1,'A',1,null)) A, sum(decode(lb1,'B',1,null)) B from table1 group by name order by name