Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Bharathi09
Creator II
Creator II

Check matching data from two different tables with different field names

Hi,

 

I need to check if data in one field of one table is matching with data in one field in other table

Both the field names are different 

Please help

 

Thanks

Labels (1)
13 Replies
Bharathi09
Creator II
Creator II
Author

I need to write logic like if code1 value exists in code2 load code1 value otherwise 'na'

please help me with logic
MarcoWedel

Can you show how you already tried yourself to write an expression using the exists() function?

Bharathi09
Creator II
Creator II
Author

Yes,

tabledata:
load code2 as code1
resident Table2
Where Exists(code1,code2);

correct me if I am wrong


MarcoWedel

for " ...  if code1 value exists in code2 ... " it would rather be 

Exists(code2,code1)

You could use this expression not only to restrict your load statement in the where clause but also as condition in an If() function that generates your desired code field.