Ver originalSELECT E.ID, E.Nombre, C.CargoFROM Empleado ELEFT JOIN ( SELECT C.* FROM Cargos C INNER JOIN ( SELECT ID,MAX(Periodo)Periodo FROM Cargos GROUP BY ID ) T ON C.ID = T.ID AND C.Periodo = T.Periodo) C ON E.ID = C.ID