If they never transferred their transEndDt is Null, meaning they are still in their current department
DeptTrans: deptTransID, deptID, empID, transDt, transEndDt
Specifically in the above example, empID 1 has transferred departments twice. His current dept is deptID 1 and his end date is Null. He was in deptID 2 all of 2008 and on 1.1.09, he transferred to dept 1 and is still apart of that dept.
DeptTrans: deptTransID, deptID, empID, transDt, transEndDt
Code:
1. 1, 1, 1, 1.1.09, Null 2. 2, 2, 1, 12.1.08, 12.31.08 3. 3, 3, 2, 1.2.09, Null 4. 4, 3, 3, 1.3.09, Null
Comment