|  |  | 
|  |  | Archives of the TeradataForumMessage Posted: Mon, 24 May 2005 @ 01:10:07 GMT
 
 You might try a correlated subquery: 
     select emp_name, emp_id, last_dt
       from  employee K1
     where last_dt = ( select max(last_dt)from employee K2
                          where K1.emp_id = K2.emp_id);
Hope this helps, Michael Larkins 
 | ||||||||||||||||||||||||||||||||||||||||||||||
|  | ||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | ||||||||||||||||||||||||||||||||||||||||||||||||
|   | ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||