<?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: Connect two tables from different DBs in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332261#M101161</link>
    <description>&lt;P&gt;And the DBs lies on same server.&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2019 13:55:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-24T13:55:11Z</dc:date>
    <item>
      <title>Connect two tables from different DBs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332258#M101158</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt; 
&lt;P&gt;I want to convert this query in a talend job and store it in a table. Currently both tables are in DB1. But RESOURCE table had moved from DB1 to DB2.&lt;/P&gt; 
&lt;P&gt;I have query like:&lt;/P&gt; 
&lt;P&gt;with filterLength as&lt;BR /&gt;(select distinct len(Filter_Element_ID) Len_filter&lt;BR /&gt;from DB1.CALCULATION where len(Filter_Element_ID) is not null and System = 'A')&lt;BR /&gt;select s.PROJECT_ID&lt;BR /&gt;, r.Calculation_ID&lt;BR /&gt;, s.ACTIVITY_RUB4&lt;BR /&gt;, ACTIVITY_RUB5&lt;BR /&gt;, r.Filter_Element_ID&lt;BR /&gt;, r.Filter_B_TYPE&lt;BR /&gt;, f.Len_Filter&lt;BR /&gt;, SUBSTRING( ACTIVITY_RUB4, 1, f.Len_Filter)&lt;BR /&gt;from DB1.RESOURCE s&lt;BR /&gt;join filterLength f on 1=1&lt;BR /&gt;join DB1.CALCULATION r&lt;BR /&gt;on SUBSTRING( ACTIVITY_RUB4, 1, f.Len_Filter) = r.Filter_Element_ID&amp;nbsp;&lt;BR /&gt;and f.Len_filter = len(r.Filter_Element_ID)&amp;nbsp;&lt;BR /&gt;and System = 'A' &amp;nbsp;&lt;BR /&gt;and (Filter_B_TYPE = s.ACTIVITY_RUB5 or Filter_B_TYPE is null)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I created two DBInputs and know I have to use tMap. But unable to implement the above logic. Need help in understanding how to do it in Talend.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;Priyadarshini&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 12:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332258#M101158</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-24T12:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Connect two tables from different DBs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332259#M101159</link>
      <description>&lt;P&gt;As I can see on your description, you have one SQL Request that picks information from two databases.&lt;/P&gt; 
&lt;P&gt;It's probably means, you have a DB_LINK between the two databases and so, from one DB, you can launch the sql request from a database I will call DB1.&lt;/P&gt; 
&lt;P&gt;1. You open connection to the database you will use to launch the resquest&lt;BR /&gt;2. tDBInput to launch the sql&lt;BR /&gt;3. tMap to adapt the output from sql request to your final table shema&lt;BR /&gt;4. tDBOutput to insert the data in the final table&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="extract(tDBInput) - Transform (tMap) - Load(tDBOutput).PNG" style="width: 731px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M54A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148303i43E4E5EE23D5478C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M54A.png" alt="0683p000009M54A.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;I hope this will help&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 13:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332259#M101159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-24T13:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Connect two tables from different DBs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332260#M101160</link>
      <description>Currently both tables are in DB1 but RESOURCE table has moved from DB1 to DB2.</description>
      <pubDate>Fri, 24 May 2019 13:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332260#M101160</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-24T13:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Connect two tables from different DBs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332261#M101161</link>
      <description>&lt;P&gt;And the DBs lies on same server.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 13:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332261#M101161</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-24T13:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Connect two tables from different DBs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332262#M101162</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLI7AAO"&gt;@priyadarshiniv&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for contacting through message for this query but I could see that&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPZEAA4"&gt;@dgm01&lt;/A&gt;&amp;nbsp; has already provided the answers.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The most easy way is to use a DB link so that you can retain the original SQL. Instead of table name, you will have to use tablename@DBlink to make things work.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please refer the below links to understand more about this concept.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/28368876/query-table-from-another-oracle-database" target="_blank" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/28368876/query-table-from-another-oracle-database&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://docs.oracle.com/cd/B28359_01/server.111/b28310/ds_concepts002.htm#ADMIN12083" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.oracle.com/cd/B28359_01/server.111/b28310/ds_concepts002.htm#ADMIN12083&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 15:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332262#M101162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-24T15:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Connect two tables from different DBs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332263#M101163</link>
      <description>Thank you for your reply. I am using SQL database. Can I use DB link ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Priyadarshini</description>
      <pubDate>Fri, 24 May 2019 15:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332263#M101163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-24T15:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Connect two tables from different DBs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332264#M101164</link>
      <description>&lt;P&gt;what do you think about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/sql/relational-databases/linked-servers/create-linked-servers-sql-server-database-engine?view=sql-server-2017" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.microsoft.com/en-us/sql/relational-databases/linked-servers/create-linked-servers-sql-server-database-engine?view=sql-server-2017&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 16:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332264#M101164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-24T16:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Connect two tables from different DBs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332265#M101165</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I hope this will help&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 16:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Connect-two-tables-from-different-DBs/m-p/2332265#M101165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-24T16:31:10Z</dc:date>
    </item>
  </channel>
</rss>

