Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
amtkmr1990
Contributor II
Contributor II

how to create T-SQL Merge in Talend

In T-SQL we use MERGE query to do follwoing 

1. when match - > update the target row 

2. when not match by target - > insert the row 

3. when not match by source -> delete the row or update column ISACTIVE="FALSE" 

 

How to do this Talend ?

Labels (2)
1 Reply
PaulyWally
Contributor III
Contributor III

The tMSSQLOutput/tDBOutput has a lot of this functionality built in.  The setup is just much different.

 

0683p000009Lxa8.png

You can setup your key field(s) in the Component Schema(s). And/or you can control things more explicitly in the Advanced Settings of the tMSSQLOutput/tDBOutput:

0683p000009LxaD.png