收起
先去重再求和
select * from (select sum(`金额`) `金额` from( select distinct `序号`,`金额` from table_name)a)b,(select count(`名称`) `数量` from table_name)c
报告相同问题?