这还不简单,这是SQL基础呀兄地。select 销售订单号,sum(销售金额) from 订单表 group by 销售订单号。
select sum(金额),订单号 from 表 group by 订单号
进行合并,