贤人必须成人,成人才能达己.

共同进步

  :: :: 博问 :: 闪存 :: 新随笔 :: :: :: 管理 ::
select c0,sum(c1) as c1,sum(c2) as c2 from
(
select c0,sum(c1) as c1,0 as c2 from t1 group by c0
union
select c0,0 as c1 ,sum(c2) as c2 from t1 group by c0
) c
group by c0
posted on 2008-06-18 16:17  adi  阅读(172)  评论(0编辑  收藏  举报