in oracle:
select 卡号,人名,日期,min(时间) from tableame
group by  卡号,人名,日期;

解决方案 »

  1.   

    select 卡号,日期,first(时间) as 最早时间 from table1 group by 卡号,日期
      

  2.   

    select 卡号,人名,日期,first(时间) as 最早时间 from table1 group by 卡号,人名,日期上面忘了人名
      

  3.   

    first(时间) as 最早时间 这句话怎么理解??
      

  4.   

    first(时间) as 最早时间 
    别名
      

  5.   

    SQLServer 中
    SELECT cardCode, date, name, MIN(time)
    FROM [table]
    GROUP BY card, date, name