How to compare one column value with another table column

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 


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.

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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog