Hi
Can you please provide me stored proc logic to capture the changes from source file while loading into datawarehouse.
eg:
Source (Monthly input in Jan)
Empid Emp Name Date
1 ABC Jan 1st
1 DEF Jan 10th
Target Output
Empid Emp Name Start Date End Date
1 ABC Jan 1st Jan 9th
1 DEF Jan 10th Null
Source (Monthly input in Feb) , will also have history
Empid Emp Name Date
1 ABC Jan 1st
1 DEF Jan 10th
1 GHI Feb 1st
Target Output
Empid Emp Name Start Date End Date
1 ABC Jan 1st Jan 9th
1 DEF Jan 10th Jan31st
1 GHI Feb 1st
Please reply with the approach..Thank you