<?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: Read data from file and use SQL in a loop to DBInput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Read-data-from-file-and-use-SQL-in-a-loop-to-DBInput/m-p/2347182#M114459</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can use tFlowToIterate to iterate each row of data read from file, eg:&lt;/P&gt;&lt;P&gt;tFileInputDelimimited--main(row1)--tFlowToIteratate--iterate--iterate--tDBInput--main--tLogRow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tDBInput: use the current tablename in the query, eg:&lt;/P&gt;&lt;P&gt;"select id, name from "+(String)globalMap.get("row1.tablename")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;About usage of tFlowToIterate component, please read the component documentation.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.talend.com/r/en-US/8.0/orchestration/tflowtoiterate" alt="https://help.talend.com/r/en-US/8.0/orchestration/tflowtoiterate" target="_blank"&gt;https://help.talend.com/r/en-US/8.0/orchestration/tflowtoiterate&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if the tables have different structure, you need to use the dynamic schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong​&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2023 03:16:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-02-17T03:16:16Z</dc:date>
    <item>
      <title>Read data from file and use SQL in a loop to DBInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-data-from-file-and-use-SQL-in-a-loop-to-DBInput/m-p/2347181#M114458</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I get ideas, the scenario is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;list of data in a CSV file, like name, database, tablename, frequency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would like to loop trough list of tables from file and pass to dBInput  pipeline - can't use tablelist as case sensitive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&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;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-data-from-file-and-use-SQL-in-a-loop-to-DBInput/m-p/2347181#M114458</guid>
      <dc:creator>cmccarthy1676460227</dc:creator>
      <dc:date>2024-11-15T22:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Read data from file and use SQL in a loop to DBInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-data-from-file-and-use-SQL-in-a-loop-to-DBInput/m-p/2347182#M114459</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can use tFlowToIterate to iterate each row of data read from file, eg:&lt;/P&gt;&lt;P&gt;tFileInputDelimimited--main(row1)--tFlowToIteratate--iterate--iterate--tDBInput--main--tLogRow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tDBInput: use the current tablename in the query, eg:&lt;/P&gt;&lt;P&gt;"select id, name from "+(String)globalMap.get("row1.tablename")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;About usage of tFlowToIterate component, please read the component documentation.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.talend.com/r/en-US/8.0/orchestration/tflowtoiterate" alt="https://help.talend.com/r/en-US/8.0/orchestration/tflowtoiterate" target="_blank"&gt;https://help.talend.com/r/en-US/8.0/orchestration/tflowtoiterate&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if the tables have different structure, you need to use the dynamic schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong​&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 03:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-data-from-file-and-use-SQL-in-a-loop-to-DBInput/m-p/2347182#M114459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-17T03:16:16Z</dc:date>
    </item>
  </channel>
</rss>

