<?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 Create an output based on 2 DBinputs in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-an-output-based-on-2-DBinputs/m-p/2308546#M79862</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have 2 databases and what I need is the following. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Database_One&lt;/B&gt; will have these fields:&lt;/P&gt;&lt;P&gt;acc_no&lt;/P&gt;&lt;P&gt;comp_id&lt;/P&gt;&lt;P&gt;td_number&lt;/P&gt;&lt;P&gt;comp_amount&lt;/P&gt;&lt;P&gt;acc_amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Database_Two&lt;/B&gt; doesn't have all of the fields within Database_Once, just the following:&lt;/P&gt;&lt;P&gt;acc_no&lt;/P&gt;&lt;P&gt;comp_amount&lt;/P&gt;&lt;P&gt;acc_amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do it take all of the fields within &lt;B&gt;Database_One&lt;/B&gt;, join to &lt;B&gt;Database_Two &lt;/B&gt;using &lt;B&gt;acc_no &lt;/B&gt;and SUM the &lt;B&gt;comp_amount&lt;/B&gt; and &lt;B&gt;acc_amount &lt;/B&gt;from the 2 databases so the final output will have the following output:&lt;/P&gt;&lt;P&gt;acc_no&lt;/P&gt;&lt;P&gt;comp_id&lt;/P&gt;&lt;P&gt;td_number&lt;/P&gt;&lt;P&gt;comp_amount&lt;/P&gt;&lt;P&gt;acc_amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how I could go about doing that please? I was thinking of having the 2 TDInputs to a TMap which then goes to a TDOutput, but not sure if that's quite right. &lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:48:18 GMT</pubDate>
    <dc:creator>thomas_2583</dc:creator>
    <dc:date>2024-11-15T22:48:18Z</dc:date>
    <item>
      <title>Create an output based on 2 DBinputs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-an-output-based-on-2-DBinputs/m-p/2308546#M79862</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have 2 databases and what I need is the following. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Database_One&lt;/B&gt; will have these fields:&lt;/P&gt;&lt;P&gt;acc_no&lt;/P&gt;&lt;P&gt;comp_id&lt;/P&gt;&lt;P&gt;td_number&lt;/P&gt;&lt;P&gt;comp_amount&lt;/P&gt;&lt;P&gt;acc_amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Database_Two&lt;/B&gt; doesn't have all of the fields within Database_Once, just the following:&lt;/P&gt;&lt;P&gt;acc_no&lt;/P&gt;&lt;P&gt;comp_amount&lt;/P&gt;&lt;P&gt;acc_amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do it take all of the fields within &lt;B&gt;Database_One&lt;/B&gt;, join to &lt;B&gt;Database_Two &lt;/B&gt;using &lt;B&gt;acc_no &lt;/B&gt;and SUM the &lt;B&gt;comp_amount&lt;/B&gt; and &lt;B&gt;acc_amount &lt;/B&gt;from the 2 databases so the final output will have the following output:&lt;/P&gt;&lt;P&gt;acc_no&lt;/P&gt;&lt;P&gt;comp_id&lt;/P&gt;&lt;P&gt;td_number&lt;/P&gt;&lt;P&gt;comp_amount&lt;/P&gt;&lt;P&gt;acc_amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how I could go about doing that please? I was thinking of having the 2 TDInputs to a TMap which then goes to a TDOutput, but not sure if that's quite right. &lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-an-output-based-on-2-DBinputs/m-p/2308546#M79862</guid>
      <dc:creator>thomas_2583</dc:creator>
      <dc:date>2024-11-15T22:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create an output based on 2 DBinputs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-an-output-based-on-2-DBinputs/m-p/2308547#M79863</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;For your use case and requirement, this goal can be achieved by using tDBInput components and tMap component.&lt;/P&gt;&lt;P&gt;The workflow should be: tDBInput(Database_One)--&amp;gt;tMap--&amp;gt;tDBOutput&lt;/P&gt;&lt;P&gt;                                        tDBInput(Database_two)&lt;/P&gt;&lt;P&gt;Here is a KB article about:&lt;A href="https://community.talend.com/s/article/tMap-expression-syntax-TCiHW" alt="https://community.talend.com/s/article/tMap-expression-syntax-TCiHW" target="_blank"&gt; https://community.talend.com/s/article/tMap-expression-syntax-TCiHW&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 07:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-an-output-based-on-2-DBinputs/m-p/2308547#M79863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-21T07:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create an output based on 2 DBinputs</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-an-output-based-on-2-DBinputs/m-p/2308548#M79864</link>
      <description>&lt;P&gt;you can use merge join or stream look up step if both input have key like comp_amount and acc_amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 10:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-an-output-based-on-2-DBinputs/m-p/2308548#M79864</guid>
      <dc:creator>Todd66</dc:creator>
      <dc:date>2022-06-30T10:04:41Z</dc:date>
    </item>
  </channel>
</rss>

