select 项目代码,sum(金额) from 表 group by 项目代码