<?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: Looping through SQL results in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Looping-through-SQL-results/m-p/2364114#M127909</link>
    <description>Cmills,
&lt;BR /&gt;I would use a tFlowToIterate and a tFixedFlowInput.
&lt;BR /&gt;In tFlowToIterate you should disable the default and add a key choosing your column name that contains your list of values. (001,002..)
&lt;BR /&gt;In your tFixedflowInput you should put the number of rows to 1 and add a column containing the following as value: ((String)globalMap.get("Key Name in tFlowToIterate ")).
&lt;BR /&gt;So I guess your job would look something like:
&lt;BR /&gt;tMssqlInput --&amp;gt; tFlowToIterate -(Iterate Link)-&amp;gt; tFixedFlowInput --&amp;gt; Tmap (for your lookups) --&amp;gt; ..
&lt;BR /&gt;That's how I would do it.
&lt;BR /&gt;Regards</description>
    <pubDate>Thu, 29 Sep 2011 10:27:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-09-29T10:27:01Z</dc:date>
    <item>
      <title>Looping through SQL results</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-through-SQL-results/m-p/2364113#M127908</link>
      <description>I'm wanting to do a SQL query that will give me a list of values&lt;BR /&gt;001&lt;BR /&gt;002&lt;BR /&gt;003&lt;BR /&gt;etc.&lt;BR /&gt;Then I want to do a process for each returned value where I do some further lookups based on the value, and a denormalize in order to batch the further lookups together.&lt;BR /&gt;I need to only look at one initial value at a time due to the denormalize.  (At least I believe I have to do it that way)&lt;BR /&gt;Any help on ways to go about this would be appreciated, I've imagined using a tLoop, or maybe just iterating off the results, but I'm not sure how I would go about that, as I can't Iterate to a map, etc.</description>
      <pubDate>Sat, 16 Nov 2024 12:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-through-SQL-results/m-p/2364113#M127908</guid>
      <dc:creator>cmills</dc:creator>
      <dc:date>2024-11-16T12:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Looping through SQL results</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Looping-through-SQL-results/m-p/2364114#M127909</link>
      <description>Cmills,
&lt;BR /&gt;I would use a tFlowToIterate and a tFixedFlowInput.
&lt;BR /&gt;In tFlowToIterate you should disable the default and add a key choosing your column name that contains your list of values. (001,002..)
&lt;BR /&gt;In your tFixedflowInput you should put the number of rows to 1 and add a column containing the following as value: ((String)globalMap.get("Key Name in tFlowToIterate ")).
&lt;BR /&gt;So I guess your job would look something like:
&lt;BR /&gt;tMssqlInput --&amp;gt; tFlowToIterate -(Iterate Link)-&amp;gt; tFixedFlowInput --&amp;gt; Tmap (for your lookups) --&amp;gt; ..
&lt;BR /&gt;That's how I would do it.
&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 29 Sep 2011 10:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Looping-through-SQL-results/m-p/2364114#M127909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-29T10:27:01Z</dc:date>
    </item>
  </channel>
</rss>

