Count the Employee having different hire date and show the lastest hire date to a new column.
My table below:
EmployeeNo HireDate TerminationDate
11 1/1/2009 6/5/2009
12 5/5/2009
13 6/2/2009
14 6/15/2009 11/1/2009
15 7/1/2009
11 9/8/2009
14 2/5/2010
The output should be like this:
EmployeeNo-------- HireDate --------- TerminationDate-------------- RehireDate-(New Column)
11 ------------------- 1/1/2009 ---------- 6/5/2009
12 ------------------- 5/5/2009
13 ------------------- 6/2/2009
14 ------------------- 6/15/2009 ---------11/1/2009
15 ------------------- 7/1/2009
11------------------- 9/8/2009------------------------------------------------9/8/2009
14 ------------------ 2/5/2010-------------------------------------------------2/5/2010
Please help. Thanks.