先分组,再select,或者直接分组
select 身份证, max(姓名) as 姓名, sum(固话费) as 固话费, sum(月补) as 月补, 年月 f rom {表A} group by 身份证,年月