How to compare one column value with another table column

Highlighted

How to compare one column value with another table column

i have one csv file,which are having 6 columns.i have another table which are having only one column.
now i want to lookup row by row of a column value with all rows of a column of another table.
my expression is like below.
Var.var1 = "0091" + row1.Bparty == row2.HOTNUMBERHEAD ? row1.Bparty : "91" + row1.Bparty 


Highlighted
One Star

Re: How to compare one column value with another table column

Sorry, i really don't understand what you want to do :
i have one csv file,which are having 6 columns.i have another table which are having only one column.
now i want to lookup row by row of a column value with all rows of a column of another table.
Highlighted

Re: How to compare one column value with another table column

@Fwandz: I want to search [font=Verdana, Helvetica, Arial, sans-serif]row1.Bparty[/font] column value with all rows of[font=Verdana, Helvetica, Arial, sans-serif] row2.HOTNUMBERHEAD[/font].if it succeed then print the  [font=Verdana, Helvetica, Arial, sans-serif]row1.Bparty[/font] column value otherwise it should print [font=Verdana, Helvetica, Arial, sans-serif]"91" + row1.Bparty[/font] in output.
i am using below expression.but condition is not getting true.
Var.var1 = "0091" + row1.Bparty == row2.HOTNUMBERHEAD ? row1.Bparty : "91" + row1.Bparty
Highlighted
One Star

Re: How to compare one column value with another table column

"0091" + (row1.Bparty.equals(row2.HOTNUMBERHEAD )? row1.Bparty : "91" + row1.Bparty)

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 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

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog