This is my query in SS Management Studio
SELECT PersonnelID, Name, EmpStartCalc, MAX(PositionDetailsValidFromCalc) PD , Max(PositionHierValidFrom