<?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 Multiple tables with different schemas to one table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Multiple-tables-with-different-schemas-to-one-table/m-p/2297713#M70257</link>
    <description>I have searched the forum and I haven't found a solution the following scenario. 
&lt;BR /&gt;I have 3 or more tables with a lot of overlapping columns but the actual schema is different for each one. 
&lt;BR /&gt;One of the three tables might contain new rows, so left join won't work I need something more like a union. 
&lt;BR /&gt;With an output with all the columns and I also want set some column update priority, something like 
&lt;BR /&gt;row1.status != null? row1.status : row2.status != null? row2.status : row3.status 
&lt;BR /&gt;for example 
&lt;BR /&gt;customer_csv 
&lt;BR /&gt;id,fist_name, status 
&lt;BR /&gt;1,"john", "active" 
&lt;BR /&gt;2,"mike", "inactive" 
&lt;BR /&gt;3,"bryan", "active" 
&lt;BR /&gt;customer_api 
&lt;BR /&gt;id, status 
&lt;BR /&gt;1, "inactive" 
&lt;BR /&gt;3, "active" 
&lt;BR /&gt;4, "inactive" 
&lt;BR /&gt; 
&lt;BR /&gt;customer_xml 
&lt;BR /&gt;id, name, phone 
&lt;BR /&gt;3,"bryan", "888-888-000" 
&lt;BR /&gt; 
&lt;BR /&gt;Output 
&lt;BR /&gt;customer 
&lt;BR /&gt;id, name, status, phone 
&lt;BR /&gt;1,"john", "inactive",null 
&lt;BR /&gt;2,"mike", "inactive",null 
&lt;BR /&gt;3,"bryan", "active", "888-888-000" 
&lt;BR /&gt;4,null, "inactive", null 
&lt;BR /&gt; 
&lt;BR /&gt;I have tried many different combinations with tMap but nothing really has worked, any ideas how it can be done? 
&lt;BR /&gt;BTW I am using TIS Version: 5.1.2</description>
    <pubDate>Tue, 29 Jan 2013 04:54:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-01-29T04:54:24Z</dc:date>
    <item>
      <title>Multiple tables with different schemas to one table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-tables-with-different-schemas-to-one-table/m-p/2297713#M70257</link>
      <description>I have searched the forum and I haven't found a solution the following scenario. 
&lt;BR /&gt;I have 3 or more tables with a lot of overlapping columns but the actual schema is different for each one. 
&lt;BR /&gt;One of the three tables might contain new rows, so left join won't work I need something more like a union. 
&lt;BR /&gt;With an output with all the columns and I also want set some column update priority, something like 
&lt;BR /&gt;row1.status != null? row1.status : row2.status != null? row2.status : row3.status 
&lt;BR /&gt;for example 
&lt;BR /&gt;customer_csv 
&lt;BR /&gt;id,fist_name, status 
&lt;BR /&gt;1,"john", "active" 
&lt;BR /&gt;2,"mike", "inactive" 
&lt;BR /&gt;3,"bryan", "active" 
&lt;BR /&gt;customer_api 
&lt;BR /&gt;id, status 
&lt;BR /&gt;1, "inactive" 
&lt;BR /&gt;3, "active" 
&lt;BR /&gt;4, "inactive" 
&lt;BR /&gt; 
&lt;BR /&gt;customer_xml 
&lt;BR /&gt;id, name, phone 
&lt;BR /&gt;3,"bryan", "888-888-000" 
&lt;BR /&gt; 
&lt;BR /&gt;Output 
&lt;BR /&gt;customer 
&lt;BR /&gt;id, name, status, phone 
&lt;BR /&gt;1,"john", "inactive",null 
&lt;BR /&gt;2,"mike", "inactive",null 
&lt;BR /&gt;3,"bryan", "active", "888-888-000" 
&lt;BR /&gt;4,null, "inactive", null 
&lt;BR /&gt; 
&lt;BR /&gt;I have tried many different combinations with tMap but nothing really has worked, any ideas how it can be done? 
&lt;BR /&gt;BTW I am using TIS Version: 5.1.2</description>
      <pubDate>Tue, 29 Jan 2013 04:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-tables-with-different-schemas-to-one-table/m-p/2297713#M70257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-29T04:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables with different schemas to one table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-tables-with-different-schemas-to-one-table/m-p/2297714#M70258</link>
      <description>try thinking about as SQL left joins&lt;BR /&gt;the wording that you have used to define your requirement is wrong.&lt;BR /&gt;could you please clarify your experience (sql , app developer)?&lt;BR /&gt;UNION datasets will give you a different result.&lt;BR /&gt;&lt;BR /&gt;that is what tMap is for.&lt;BR /&gt;&lt;BR /&gt;connect into tMap the following:&lt;BR /&gt;customer_csv&lt;BR /&gt;is used as the main input&lt;BR /&gt;&lt;BR /&gt;customer_api&lt;BR /&gt;as a lookup&lt;BR /&gt;then in tMap use the ID column to join the data sets&lt;BR /&gt;and add the column you want to the output</description>
      <pubDate>Tue, 29 Jan 2013 11:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-tables-with-different-schemas-to-one-table/m-p/2297714#M70258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-29T11:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables with different schemas to one table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-tables-with-different-schemas-to-one-table/m-p/2297715#M70259</link>
      <description>Thanks for your reply, I am Java developer with very little experience working with ETL tools. 
&lt;BR /&gt;You are right, I need something more like Full Outer Join, since all three tables might have new records. 
&lt;BR /&gt;If I use left outer join the customer id = 4 will be left out because is not on the customer_csv table.</description>
      <pubDate>Tue, 29 Jan 2013 18:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-tables-with-different-schemas-to-one-table/m-p/2297715#M70259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-29T18:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple tables with different schemas to one table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-tables-with-different-schemas-to-one-table/m-p/2297716#M70260</link>
      <description>Hi, &lt;BR /&gt;Here is a reference about &lt;A href="https://help.talend.com/search/all?query=tMap&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tMap&lt;/A&gt; on Talend Help Center. &lt;BR /&gt;Hope it will give you a little help &lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 30 Jan 2013 06:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-tables-with-different-schemas-to-one-table/m-p/2297716#M70260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-30T06:07:57Z</dc:date>
    </item>
  </channel>
</rss>

