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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Diff from DB Tables

Hello everybody,

i have this problem.

I have two tables A,B.

Foreach record stored in A i need to check if it is already stored on table B. if it's true, I run a Job X otherwise I run a Job Y.

How can i do that?

Thanks.

Labels (2)
1 Solution

Accepted Solutions
vapukov
Master II
Master II

t not possible to answer full - because I can not see, what are You doing in tMap, why it marked as error (red !)

 

but answer for Your original question:

Foreach record stored in A i need to check if it is already stored on table B. if it's true, I run a Job X otherwise I run a Job Y.

You must have 2 output from tMap
- matched

- rejected

 

each of components must be connected to tFlowToIterate and each of them to tRunJob

attache - samples, how tMap INNER JOIN work

 

0683p000009LvjL.png

0683p000009LvtL.png

 

as I understand Your picture, in Your case both connections inside tMap must be from Lar

View solution in original post

3 Replies
vapukov
Master II
Master II

You can use tMap with Inner Join

 

main flow from Table A

lookup flow from table B

Inner JOIN

both output flow inside tMap from Table A

1 matched, 1 rejected

from each output tFlowToIterate and tRunJob

Anonymous
Not applicable
Author

Forgive me, but I'm not so practical about Talend.

I have done the inner join but now I don't Know I can iterate each result and so go on with tRunJob.

As you can see from the image below, I don't know how to handle the tmap and TFlowToIterate.

 

How can I do what you have said?

Thanks


Immagine.png
vapukov
Master II
Master II

t not possible to answer full - because I can not see, what are You doing in tMap, why it marked as error (red !)

 

but answer for Your original question:

Foreach record stored in A i need to check if it is already stored on table B. if it's true, I run a Job X otherwise I run a Job Y.

You must have 2 output from tMap
- matched

- rejected

 

each of components must be connected to tFlowToIterate and each of them to tRunJob

attache - samples, how tMap INNER JOIN work

 

0683p000009LvjL.png

0683p000009LvtL.png

 

as I understand Your picture, in Your case both connections inside tMap must be from Lar