Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

how to get updated data rows along with new rows.

$
0
0

Hi All,

I have query like below. when I am inserting new row it is showing when I am updating some column in table which is not showing how can I get that updated columns also.

select   e.id ,LTRIM(RTRIM(UPPER(e.id))) as Upper_id
,e.isActive 
,e.Designation 

from employee e  left join department d on e.id = d.employeeid

where not exists
select   id ,LTRIM(RTRIM(UPPER(id))) as Upper_id
,isActive
,Designation 
from employee_Dim ed  where e.id = ed.id

After success full loading of employee_Dim , few columns get updated and few columns get inserted. how can i get the both as new records by using above code.

Thanks

AVS


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>