<?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: Table Joins using 2 common fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434574#M162008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there are unique values of A and C in each table, try the following. If all values are in each table, you can leave out a few steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1a:&lt;/P&gt;&lt;P&gt;Load A,B from Table1.xls;&lt;/P&gt;&lt;P&gt;left join load A, C, D from Table2.xls;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load A&amp;amp;C as AC, B, D resident Table1a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table3a:&lt;/P&gt;&lt;P&gt;Load A,C, X, Y from Table3.xls;&lt;/P&gt;&lt;P&gt;Table3:&lt;/P&gt;&lt;P&gt;Load A&amp;amp;C as AC,X,Y resident Table3a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LinkTable:&lt;/P&gt;&lt;P&gt;Load A,C,A&amp;amp;C as AC resident Table1a;&lt;/P&gt;&lt;P&gt;join Load A, C, A&amp;amp;C as AC resident Table3a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Table1a;&lt;/P&gt;&lt;P&gt;drop table Table3a;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2012 14:45:59 GMT</pubDate>
    <dc:creator>danielact</dc:creator>
    <dc:date>2012-09-24T14:45:59Z</dc:date>
    <item>
      <title>Table Joins using 2 common fields</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434567#M162001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to join 2 tables using 2 common fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current script is as below: (Joined (left joined) two tables using column A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: maroon;"&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: maroon;"&gt;LOAD A,B&amp;nbsp; from Table1.xls;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: maroon;"&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: maroon;"&gt;left join(Table1) LOAD A,C,D from Table2.xls;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***After joining my &lt;STRONG&gt;Table1 have A,B,C,D&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement: &lt;/STRONG&gt;To join Table 1 and a new table 'Table 3' using A and C columns,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: maroon;"&gt;Table3:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: maroon;"&gt;LOAD A,C,X,Y&amp;nbsp; from Table3.xls;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I load as above, it creates a Synthetic table using A and C - since it has more than 2 common fields.&lt;/P&gt;&lt;P&gt;So, I was trying to create a composite key using A and C (A&amp;amp;','&amp;amp;C as Key)&lt;/P&gt;&lt;P&gt;When I create the key on Table 1, Qlikview does not recognize column C, since C is coming from Table2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted create a new table (Say-Table 4) that holds all data after left joining Table2 with and Table1 as above and then create a composite key on Table3 and Table4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me with the process to achieve the same?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 12:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434567#M162001</guid>
      <dc:creator>sureshbaabu</dc:creator>
      <dc:date>2012-09-24T12:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table Joins using 2 common fields</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434568#M162002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The use of a synthetic key in this context is the correct one. &lt;/P&gt;&lt;P&gt;Have you read this discussion? &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/10279?start=30&amp;amp;tstart=0" title="http://community.qlik.com/thread/10279?start=30&amp;amp;tstart=0"&gt;http://community.qlik.com/thread/10279?start=30&amp;amp;tstart=0&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 12:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434568#M162002</guid>
      <dc:creator />
      <dc:date>2012-09-24T12:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Table Joins using 2 common fields</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434569#M162003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response. &lt;/P&gt;&lt;P&gt;If Synthetic key is the only solution. I'm happy to go with the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could help me with the process to create a new table by merging 2 tables, that would be great.&lt;/P&gt;&lt;P&gt;(creating Table4 on my example above)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 12:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434569#M162003</guid>
      <dc:creator>sureshbaabu</dc:creator>
      <dc:date>2012-09-24T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Table Joins using 2 common fields</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434570#M162004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To confirm, &lt;/P&gt;&lt;P&gt;You want to create table 4 which is made of the data excluded by the joining of tables 1 and 2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 13:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434570#M162004</guid>
      <dc:creator />
      <dc:date>2012-09-24T13:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Table Joins using 2 common fields</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434571#M162005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah,,, I wanted to create Table4 which have all the values that is produced after joining Table1 and Table2 &lt;/P&gt;&lt;P&gt;table4= table1+table2( Table2 left joined with table1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 13:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434571#M162005</guid>
      <dc:creator>sureshbaabu</dc:creator>
      <dc:date>2012-09-24T13:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Table Joins using 2 common fields</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434572#M162006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Think I know what you mean...&lt;/P&gt;&lt;P&gt;Table 4:&lt;/P&gt;&lt;P&gt;Load * &lt;/P&gt;&lt;P&gt;(composite key created here)&lt;/P&gt;&lt;P&gt;resident Table 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop Table 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 13:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434572#M162006</guid>
      <dc:creator />
      <dc:date>2012-09-24T13:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Table Joins using 2 common fields</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434573#M162007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesnt seems to be working. I'm not sure if I'm wrong. When I drop Table1, Table 4&amp;nbsp; doesnt exist. &lt;/P&gt;&lt;P&gt;Note: the value gets doubled when i dont drop Table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching my test file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 14:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434573#M162007</guid>
      <dc:creator>sureshbaabu</dc:creator>
      <dc:date>2012-09-24T14:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Table Joins using 2 common fields</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434574#M162008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there are unique values of A and C in each table, try the following. If all values are in each table, you can leave out a few steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1a:&lt;/P&gt;&lt;P&gt;Load A,B from Table1.xls;&lt;/P&gt;&lt;P&gt;left join load A, C, D from Table2.xls;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load A&amp;amp;C as AC, B, D resident Table1a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table3a:&lt;/P&gt;&lt;P&gt;Load A,C, X, Y from Table3.xls;&lt;/P&gt;&lt;P&gt;Table3:&lt;/P&gt;&lt;P&gt;Load A&amp;amp;C as AC,X,Y resident Table3a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LinkTable:&lt;/P&gt;&lt;P&gt;Load A,C,A&amp;amp;C as AC resident Table1a;&lt;/P&gt;&lt;P&gt;join Load A, C, A&amp;amp;C as AC resident Table3a;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Table1a;&lt;/P&gt;&lt;P&gt;drop table Table3a;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 14:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434574#M162008</guid>
      <dc:creator>danielact</dc:creator>
      <dc:date>2012-09-24T14:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table Joins using 2 common fields</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434575#M162009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Danielact you're a star.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;His is the correct answer to your original question &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 09:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434575#M162009</guid>
      <dc:creator />
      <dc:date>2012-09-28T09:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Table Joins using 2 common fields</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434576#M162010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Both for helping me with the issue. Thanks for your time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 10:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434576#M162010</guid>
      <dc:creator>sureshbaabu</dc:creator>
      <dc:date>2012-09-28T10:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Table Joins using 2 common fields</title>
      <link>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434577#M162011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to help, If you can mark Danielact's question as correct then other people with similar queries will be able to look at this discussion for the answer &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 11:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-Joins-using-2-common-fields/m-p/434577#M162011</guid>
      <dc:creator />
      <dc:date>2012-09-28T11:03:18Z</dc:date>
    </item>
  </channel>
</rss>

