访问SQL查询,查找员工的最新到期日期

时间:2014-05-12 13:55:25

标签: sql

我跟踪员工对CPI课程的培训。我只想知道他们的证书什么时候到期。

这是我目前看到的:

Employee Name     Expiration Date
Jane Doe          June 5, 2014
Jane Doe          May 10, 2013
Jim Smith         July 6, 2014
Jim Smith         June 10, 2013
Bob Turner        November 10 ,2015       
Bob Turner        November 10, 2014

这就是我想要看到的:

Employee Name     Expiration Date
Jane Doe          June 5, 2014
Jim Smith         July 6, 2014
Bob Turner        November 10 ,2015

1 个答案:

答案 0 :(得分:1)

根据您的修改

尝试此操作
    SELECT [Employee name], MAX([expiration Date])
    from [Your Table]
    GROUP BY [Employee name]