<?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: Create a generic job to access multiple tables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-a-generic-job-to-access-multiple-tables/m-p/2203006#M4497</link>
    <description>thank you rhall
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Brat</description>
    <pubDate>Tue, 04 Dec 2018 16:31:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-04T16:31:34Z</dc:date>
    <item>
      <title>Create a generic job to access multiple tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-a-generic-job-to-access-multiple-tables/m-p/2203002#M4493</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a use case where I have to access multiple tables from a database and create an output files.&lt;/P&gt;&lt;P&gt;Exp: below are 3 table that I would like to query from my job to extract data&lt;/P&gt;&lt;P&gt;loans, deposits,securities&lt;/P&gt;&lt;P&gt;the schema for above mentioned tables are different&lt;/P&gt;&lt;P&gt;Basically i want to create generic job(as i may need to extract data from other tables in future) where my select query can be controlled from a context variable or can be handled outside of the job with out hard coding the "select query" within the tDBcomponents in Talend&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also in my select query I would like to pass my table name and other key attributes through context during run time , to avoid hard coding with in the job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;exp: select * from sw.deposits where account_type='deposits'&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sw.deposits &amp;amp;&amp;nbsp;account_type should pass during run time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Brat&lt;/P&gt;</description>
      <pubDate>Sun, 02 Dec 2018 18:27:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-a-generic-job-to-access-multiple-tables/m-p/2203002#M4493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-02T18:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create a generic job to access multiple tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-a-generic-job-to-access-multiple-tables/m-p/2203003#M4494</link>
      <description>&lt;P&gt;Assuming that this is using the open source edition of Talend, you can do it this way....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Assign your SQL query to a context variable that is used in your DB component. This can be done by reading from a file or a database. This is totally up to you how you decide to store your query.&lt;/P&gt;&lt;P&gt;2) Create a schema in your DB component which is full of String columns. Create as many columns as you think may possibly be needed in your biggest table. They must all be String.&lt;/P&gt;&lt;P&gt;3) When writing your queries, ensure that you convert ALL columns to varchar in the queries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After you have got this far, the rest is easy. You are simply writing to a flat file, so the data does not require a strict type and no transformation will be needed.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 09:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-a-generic-job-to-access-multiple-tables/m-p/2203003#M4494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-03T09:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create a generic job to access multiple tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-a-generic-job-to-access-multiple-tables/m-p/2203004#M4495</link>
      <description>&lt;P&gt;in addition to&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;- even in subscription version it works properly only with string and integer&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;it possible to write dynamic code for parse universal structure, but generally must faster - create 3 separate jobs for each table, much faster and much stable&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 19:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-a-generic-job-to-access-multiple-tables/m-p/2203004#M4495</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-12-03T19:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a generic job to access multiple tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-a-generic-job-to-access-multiple-tables/m-p/2203005#M4496</link>
      <description>&lt;P&gt;Thanks Vapukov for your suggestion&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 16:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-a-generic-job-to-access-multiple-tables/m-p/2203005#M4496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-04T16:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create a generic job to access multiple tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-a-generic-job-to-access-multiple-tables/m-p/2203006#M4497</link>
      <description>thank you rhall
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Brat</description>
      <pubDate>Tue, 04 Dec 2018 16:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-a-generic-job-to-access-multiple-tables/m-p/2203006#M4497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-04T16:31:34Z</dc:date>
    </item>
  </channel>
</rss>

