<?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 Re: how do we pass certain characters to a sql input and then fetch the data according to the the characters passed? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247175#M32447</link>
    <description>yes, my input is set of alphabets, i have to pass these alphabets to a&lt;BR /&gt;certain column in a table in sql db and according to these alphabets i want&lt;BR /&gt;filter the table and fetch the data.&lt;BR /&gt;</description>
    <pubDate>Thu, 04 May 2017 06:06:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-04T06:06:08Z</dc:date>
    <item>
      <title>how do we pass certain characters to a sql input and then fetch the data according to the the characters passed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247173#M32445</link>
      <description />
      <pubDate>Wed, 03 May 2017 14:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247173#M32445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-03T14:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: how do we pass certain characters to a sql input and then fetch the data according to the the characters passed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247174#M32446</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please elaborate your case with an example with input and expected output values?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sabrina&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 03:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247174#M32446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T03:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: how do we pass certain characters to a sql input and then fetch the data according to the the characters passed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247175#M32447</link>
      <description>yes, my input is set of alphabets, i have to pass these alphabets to a&lt;BR /&gt;certain column in a table in sql db and according to these alphabets i want&lt;BR /&gt;filter the table and fetch the data.&lt;BR /&gt;</description>
      <pubDate>Thu, 04 May 2017 06:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247175#M32447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T06:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: how do we pass certain characters to a sql input and then fetch the data according to the the characters passed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247176#M32448</link>
      <description>&lt;P&gt;I think you can do something like this,&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filterSQL.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu2c.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148422i9216FD40DBB13BD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu2c.png" alt="0683p000009Lu2c.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So assuming that your input contains a single column with the alphabets values, you can reference it in the tMysqlInput Component as shown above (row1.alphabet in the screenshot).&lt;/P&gt; 
&lt;P&gt;If your output is a file, make sure to select the append option so that you can consolidate the filters.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Alternatively you can always do a inner join by having the alphabets as your lookup table. This approach would be easier I think.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope you found this helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 12:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247176#M32448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T12:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: how do we pass certain characters to a sql input and then fetch the data according to the the characters passed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247177#M32449</link>
      <description>hi,&lt;BR /&gt;for example my a,b,c,d isthe characters i want to pass through mysqlinput&lt;BR /&gt;where the table contains set of names,salary,dept,etc.I want to get the&lt;BR /&gt;data of names starting with letters a,b,c,d. Can any1 suggest a better&lt;BR /&gt;answer?&lt;BR /&gt;</description>
      <pubDate>Thu, 04 May 2017 13:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247177#M32449</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T13:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: how do we pass certain characters to a sql input and then fetch the data according to the the characters passed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247178#M32450</link>
      <description>&lt;P&gt;You can store the "where" clause in a global variable&amp;nbsp;and construct the content of this variable based on your business logic.&lt;/P&gt;&lt;P&gt;Then, in the tMysqlInput, concatenate the variable to the select, giving, not a sql dynamic query (from database point of view), but a query constructed dynamicaly.&lt;/P&gt;&lt;P&gt;Does this helps?&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 13:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247178#M32450</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-04T13:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: how do we pass certain characters to a sql input and then fetch the data according to the the characters passed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247179#M32451</link>
      <description>&lt;P&gt;You can use a regex in your SQL expression to filter out the data that your require.&lt;/P&gt; 
&lt;P&gt;I know it's the same design as before, but it's&amp;nbsp;one of the easiest ways to do this.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="extractSQL.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lsw7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146047iCE4C585E624250DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lsw7.png" alt="0683p000009Lsw7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMySQLcomponent.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu2h.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130444i8B3CEE153A5DCC09/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu2h.png" alt="0683p000009Lu2h.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tFixedFlowComponent.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lu2r.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128101i3BFF1DFE04F38B35/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lu2r.png" alt="0683p000009Lu2r.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can replace the fixed flow component with an input component based on whether it comes from a file or a database.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 13:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247179#M32451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-04T13:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: how do we pass certain characters to a sql input and then fetch the data according to the the characters passed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247180#M32452</link>
      <description>but do i need to give global variable in the sql query?&lt;BR /&gt;</description>
      <pubDate>Fri, 05 May 2017 05:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247180#M32452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-05T05:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: how do we pass certain characters to a sql input and then fetch the data according to the the characters passed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247181#M32453</link>
      <description>&lt;P&gt;Yes. That's one way to do it. Or you can use a tFilterRow or tmap after the sql component and filter the data there.&lt;/P&gt;&lt;P&gt;You could use something like &lt;STRONG&gt;row2.Names.matches((String)globalMap.get("row1.alphabet")+"*")&lt;/STRONG&gt; as the filter condition.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 07:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247181#M32453</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-05T07:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: how do we pass certain characters to a sql input and then fetch the data according to the the characters passed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247182#M32454</link>
      <description>can i just iterate these characters to my sql input and then write a query&lt;BR /&gt;in the mysqlinput querybox giving a like function in where clause like&lt;BR /&gt;[where row1.names like "'+(string)globalMap.get(row1.alphabet)+'%"], this&lt;BR /&gt;should work right?&lt;BR /&gt;</description>
      <pubDate>Fri, 05 May 2017 07:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247182#M32454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-05T07:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: how do we pass certain characters to a sql input and then fetch the data according to the the characters passed?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247183#M32455</link>
      <description>&lt;P&gt;yup it should. You can just try giving row1.alphabet. If that doesn't work, then you can explicitly get the value by using the get method,&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;(string)globalMap.get("row1.alphabet").&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Also your syntax seems a bit off.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;It should be&amp;nbsp;&lt;STRONG&gt;where row1.names like '"+(string)globalMap.get("row1.alphabet")+"%'"&amp;nbsp;&lt;/STRONG&gt;i.e make sure your double quotes and single quotes are properly enclosed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 07:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-do-we-pass-certain-characters-to-a-sql-input-and-then-fetch/m-p/2247183#M32455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-05T07:51:10Z</dc:date>
    </item>
  </channel>
</rss>

