SELECT 工号,姓名,SUM(VAL(病假)) AS 病假,SUM(VAL(事假)) AS 事假,SUM(VAL(婚假)) AS 婚假,SUM(VAL(产假)) AS ; 产假,SUM(VAL(丧假)) AS 丧假,SUM(VAL(工伤)) AS 工伤,SUM(VAL(护理假)) AS 护理假,SUM(VAL(调休)) AS 调休,; SUM(VAL(计生假)) AS 计生假,SUM(VAL(公差a)) AS 公差a,SUM(VAL(年休假)) AS 年休假,SUM(VAL(助产假)) AS ; 助产假,SUM(VAL(培训学习a)) AS 培训学习a,SUM(VAL(延长产假)) AS 延长产假,SUM(VAL(旷工)) AS 旷工,; SUM(VAL(借用)) AS 借用,SUM(VAL(平日加班)) AS 平日加班,SUM(VAL(休日加班)) AS 休日加班 ; FROM 考勤月报表 GROUP BY 工号, 姓名应该用工号作为汇总依据,因为一个单位可能会有同名同姓的员工。