<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic equals with multiple data ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/equals-with-multiple-data/m-p/2374630#M137199</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a tMap component, I do this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;!CAS1.ID.equals("101")&lt;/P&gt;&lt;P&gt;&amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;!CAS1.ID.equals("102")&lt;/P&gt;&lt;P&gt;&amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;!CAS1.ID.equals("110")&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is OK but for me, this code is not "nice" and I search to make better this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find something like this in MySQL :&lt;/P&gt;&lt;P&gt;select id from table where id IN ('a', 'b', ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to do something like this with Talend ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:32:01 GMT</pubDate>
    <dc:creator>Eric_Talend</dc:creator>
    <dc:date>2024-11-15T23:32:01Z</dc:date>
    <item>
      <title>equals with multiple data ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/equals-with-multiple-data/m-p/2374630#M137199</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a tMap component, I do this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;!CAS1.ID.equals("101")&lt;/P&gt;&lt;P&gt;&amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;!CAS1.ID.equals("102")&lt;/P&gt;&lt;P&gt;&amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;!CAS1.ID.equals("110")&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is OK but for me, this code is not "nice" and I search to make better this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find something like this in MySQL :&lt;/P&gt;&lt;P&gt;select id from table where id IN ('a', 'b', ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to do something like this with Talend ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/equals-with-multiple-data/m-p/2374630#M137199</guid>
      <dc:creator>Eric_Talend</dc:creator>
      <dc:date>2024-11-15T23:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: equals with multiple data ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/equals-with-multiple-data/m-p/2374631#M137200</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You can achieve this goal by using tMySqlInput component with context value in your Where clause.&lt;/P&gt;&lt;P&gt;The syntax looks like "SELECT id FROM mytable WHERE id IN '"+context.myvariable + "'"&lt;/P&gt;&lt;P&gt;The best way to approach this is to build your SQL query, output it to the System.out and then test the String you see in a query analyzer. If it works there, it will work in your DB component.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 03:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/equals-with-multiple-data/m-p/2374631#M137200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-11T03:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: equals with multiple data ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/equals-with-multiple-data/m-p/2374632#M137201</link>
      <description>&lt;P&gt;I think below condition using java &lt;B&gt;&lt;I&gt;contains&lt;/I&gt;&lt;/B&gt; method would be nicer (assuming comma is your separator).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;! ( "," + "&lt;B&gt;101,102,103,104,105,106&lt;/B&gt;" + "," ).contains( ("," + &lt;A href="http://CAS1.ID" alt="http://CAS1.ID" target="_blank"&gt;CAS1.ID&lt;/A&gt; + ",") )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can easily expand your listOfValues "&lt;B&gt;101,102,103,104,105,106&lt;/B&gt;" separated by a comma as you like.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 15:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/equals-with-multiple-data/m-p/2374632#M137201</guid>
      <dc:creator>Mahamoutou</dc:creator>
      <dc:date>2021-11-15T15:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: equals with multiple data ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/equals-with-multiple-data/m-p/2374633#M137202</link>
      <description>&lt;P&gt;Hi you can use regular expressions :&lt;/P&gt;&lt;P&gt;!CAS1.ID.matches("101|102|110")&lt;/P&gt;&lt;P&gt;Send me love and kudos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 08:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/equals-with-multiple-data/m-p/2374633#M137202</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-11-19T08:59:59Z</dc:date>
    </item>
  </channel>
</rss>

