从制造到创造
软件工程师成长之路
posts - 234,  comments - 64,  trackbacks - 0
要求:根据Reinsurance_Level和ReCompanyCode进行汇总:

select t.reinsurance_Level,t.re_Company_Code,sum(t.ceded_Amount) 
    
from Claimnotice_Insurance_Detail t 
    
where 1=1
-- 此处加条件
 group by t.reinsurance_Level,t.re_Company_Code;
结果:

REINSURANCE_LEVEL RE_COMPANY_CODE 3
1 1 2621000
1 2 1534000
1 3 375000
Q 2 302000
Q 4 302000

  
posted @ 2008-01-21 11:33 CoderDream 阅读(202) | 评论 (0)编辑 收藏

<2008年1月>
303112345
6789101112
13141516171819
20212223242526
272829303112
3456789

常用链接

留言簿(5)

我参与的团队

随笔分类(231)

随笔档案(229)

文章分类(3)

文章档案(3)

收藏夹(440)

友情链接

搜索

  •  

积分与排名

  • 积分 - 60377
  • 排名 - 170

最新评论

阅读排行榜

评论排行榜