At a complete guess...
[Code]SELECT {YourColumns}
FROM Table1 T1
OUTER APPLY (SELECT TOP 1 {columns}
FROM Table2 oa
WHERE oa.EmployeeID = T1.EmployeeID
ORDER BY {YourDateColumn} DESC) T2;[/code]
You'll need to correct the parts in the braces, as I don't have any sample data/DDL to base the query on.
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk