<?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 ETL that reads select query from inside a column and inserts the resulted rows into another table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/ETL-that-reads-select-query-from-inside-a-column-and-inserts-the/m-p/2347040#M114360</link>
    <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I am a beginner with Talend and this might be very easy to do, but for me seems a little bit complicated, so I would appreciate your help.&lt;/LI&gt;&lt;LI&gt;I have a table (&lt;B&gt;TABLE A&lt;/B&gt;) that contains a column in which different queries are stored. For every row from that table, the column named 'query' contains a select statement. &lt;/LI&gt;&lt;LI&gt;Each of these queries selects same kind of columns (so the table resulted for each of the query looks similar (same number of columns and same type of data)&lt;/LI&gt;&lt;LI&gt;I need to read the data resulted from running the select statement from within the column 'query' of the &lt;B&gt;TABLE A&lt;/B&gt; and insert them into&lt;B&gt; TABLE B.&lt;/B&gt;&lt;/LI&gt;&lt;LI&gt;&lt;B&gt;Table B'&lt;/B&gt;s columns are the same as the columns from the select statements.&lt;/LI&gt;&lt;LI&gt;I think i need to select the query column from the &lt;B&gt;TABLE A &lt;/B&gt;and then create a context for that column and next to somehow read the data using the context and insert it into&lt;B&gt; TABLE B &lt;/B&gt;but i don't know what kind of components I should use.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Andreea&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 15:36:10 GMT</pubDate>
    <dc:creator>APelmus</dc:creator>
    <dc:date>2023-02-14T15:36:10Z</dc:date>
    <item>
      <title>ETL that reads select query from inside a column and inserts the resulted rows into another table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ETL-that-reads-select-query-from-inside-a-column-and-inserts-the/m-p/2347040#M114360</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I am a beginner with Talend and this might be very easy to do, but for me seems a little bit complicated, so I would appreciate your help.&lt;/LI&gt;&lt;LI&gt;I have a table (&lt;B&gt;TABLE A&lt;/B&gt;) that contains a column in which different queries are stored. For every row from that table, the column named 'query' contains a select statement. &lt;/LI&gt;&lt;LI&gt;Each of these queries selects same kind of columns (so the table resulted for each of the query looks similar (same number of columns and same type of data)&lt;/LI&gt;&lt;LI&gt;I need to read the data resulted from running the select statement from within the column 'query' of the &lt;B&gt;TABLE A&lt;/B&gt; and insert them into&lt;B&gt; TABLE B.&lt;/B&gt;&lt;/LI&gt;&lt;LI&gt;&lt;B&gt;Table B'&lt;/B&gt;s columns are the same as the columns from the select statements.&lt;/LI&gt;&lt;LI&gt;I think i need to select the query column from the &lt;B&gt;TABLE A &lt;/B&gt;and then create a context for that column and next to somehow read the data using the context and insert it into&lt;B&gt; TABLE B &lt;/B&gt;but i don't know what kind of components I should use.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Andreea&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 15:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ETL-that-reads-select-query-from-inside-a-column-and-inserts-the/m-p/2347040#M114360</guid>
      <dc:creator>APelmus</dc:creator>
      <dc:date>2023-02-14T15:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: ETL that reads select query from inside a column and inserts the resulted rows into another table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ETL-that-reads-select-query-from-inside-a-column-and-inserts-the/m-p/2347041#M114361</link>
      <description>&lt;P&gt;Hi Andreea,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I understood it correctly, I just made my own example. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a table "Queries" that contains in one column the queries&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000dc0XCAAY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132508iCD3D6AC8A0606E19/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000dc0XCAAY.png" alt="0695b00000dc0XCAAY.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I have a table "Table A" with the values I query.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000dc0WoAAI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147050i5D548B01F7CD6B51/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000dc0WoAAI.png" alt="0695b00000dc0WoAAI.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Job design looks like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000dc0a1AAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138670i484ED4B4123A97CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000dc0a1AAA.png" alt="0695b00000dc0a1AAA.png" /&gt;&lt;/span&gt;I load the table with the queries, the tMap_2 is just assign the field to the next component (if you would have more fields in the query table) after that its going into a tFlowToIterate and then to the table which contains the data you want to query. The rest is easy just another tMap to Map the fields and then a tUnite to unite the data into one stream into TableB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the important stuff on the query config in TableA (you need to assign the variable from the tFlowToIterate component:&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000dc0dyAAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142628i14A2A0EE9C69EBDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000dc0dyAAA.png" alt="0695b00000dc0dyAAA.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that is what you were looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 16:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ETL-that-reads-select-query-from-inside-a-column-and-inserts-the/m-p/2347041#M114361</guid>
      <dc:creator>BenG</dc:creator>
      <dc:date>2023-02-15T16:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: ETL that reads select query from inside a column and inserts the resulted rows into another table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ETL-that-reads-select-query-from-inside-a-column-and-inserts-the/m-p/2347042#M114362</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 11:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ETL-that-reads-select-query-from-inside-a-column-and-inserts-the/m-p/2347042#M114362</guid>
      <dc:creator>APelmus</dc:creator>
      <dc:date>2023-02-21T11:39:04Z</dc:date>
    </item>
  </channel>
</rss>

