--日期              单号      A1  B1    C1 select 日期,单号,max(A1),max(B1),max(c1) from tableName
group by 日期,单号