tELTORACLE UPDATE

Highlighted
Five Stars

tELTORACLE UPDATE

I'm trying to do an update with ELT of one column but it depends of the where clause, otherwise the column should remain the original. however using the following talend returns NULL for all the not matching rows and returns the updated value for the matching rows.

 

Snip 2018-06-18 13.14.55.jpgSnip 2018-06-18 13.16.19.jpgSnip 2018-06-18 13.16.39.jpg

 

 

 

 

 

 


Accepted Solutions
Highlighted
Five Stars

Re: tELTORACLE UPDATE

we solved it by implementing the following in the where clause:

 

EXISTS (SELECT 1 from TESTING2 WHERE TESTING2.KEY = C.KEY   AND  TESTING2.VAL3 = C.COLUMN4)

View solution in original post


All Replies
Highlighted
Thirteen Stars

Re: tELTORACLE UPDATE

what is your problem?

 

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Highlighted
Five Stars

Re: tELTORACLE UPDATE

the problem is that the entire column gets new values, the updated value if there is a match and otherwise NULL, it should be updated value if there is a match, otherwise keep original data

Highlighted
Five Stars

Re: tELTORACLE UPDATE

we solved it by implementing the following in the where clause:

 

EXISTS (SELECT 1 from TESTING2 WHERE TESTING2.KEY = C.KEY   AND  TESTING2.VAL3 = C.COLUMN4)

View solution in original post

Highlighted
Thirteen Stars

Re: tELTORACLE UPDATE

try to write sql query , you are going to link by id you Need it in elt.
have a look to generated sql query. do you have the same?

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Highlighted
Five Stars

Re: tELTORACLE UPDATE

We do know, by adding the code (accepted as answer) to the where clause in the ELTORACLEOUTPUT

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog