I have 2 tables Employee and Department tables
Employee :
EmpID EmpName DOJ 1 Mohan NULL 2 Manasa NULL
Department :
DepID DepName EmpName DOJ 1 Maths Mohan K 2017-08-01 2 English Mohan Kumar 2018-08-01 3 Science Manasa K 2016-08-01 1 Social Manasa 2017-09-01
Where i need to update Employee table Date of joining column using the Department table.
I need to get latest date of joining basing on the MAX Condition and need to use LIKE Condition using SSIS.
Initially I have used EXECUTE SQL TASK and sending the FULL RESULT SET through variable and putting that SQL TASK into For Each loop container
And need to update in the Employee table like below :
EmpID EmpName DOJ 1 Mohan 2018-08-01 2 Manasa 2017-09-01
I have used
EXECUTE SQL TASK : Where I have written query 'SELECT EMPNAME FROM EMPLOYEE' and given full result set and stored in a variable
FOR EACH LOOP CONTAINER : used ADO.ENUMERATOR and used that variable .
Suggest me the way to achieve this