<?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: Two Tables Join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350760#M130020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok will try both the methods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2012 22:59:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-13T22:59:18Z</dc:date>
    <item>
      <title>Two Tables Join</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350754#M130014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have below two tables, how to combine those two ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_A:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Name,&lt;/P&gt;&lt;P&gt;City,&lt;/P&gt;&lt;P&gt;Occupation,&lt;/P&gt;&lt;P&gt;Income&lt;/P&gt;&lt;P&gt;From qvda;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_B:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Name,&lt;/P&gt;&lt;P&gt;City,&lt;/P&gt;&lt;P&gt;SSN,&lt;/P&gt;&lt;P&gt;Blue__Red_Ind&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From qvdb;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want output whenver Name and City combination matches from Table A to Table B. (If data for A is present in B populate Blue_red_Ind else put blanks in field Blue_Red_Ind.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected table columns&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Name,City,Occupation,Income,City,Blue_Red_Ind&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking Simple Join should work , but not sure if it is Friday Night so its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I try to concatenate both fields(Name and City ) to create a new field? Is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 21:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350754#M130014</guid>
      <dc:creator />
      <dc:date>2012-07-13T21:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Two Tables Join</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350755#M130015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Without join, itself, qlikview automatically join all fields based on name and city ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Want to merge in single table, use,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_A:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Name,&lt;/P&gt;&lt;P&gt;City,&lt;/P&gt;&lt;P&gt;Occupation,&lt;/P&gt;&lt;P&gt;Income&lt;/P&gt;&lt;P&gt;From qvda;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_B:&lt;/P&gt;&lt;P&gt;Concatenate(Table_A)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Name,&lt;/P&gt;&lt;P&gt;City,&lt;/P&gt;&lt;P&gt;SSN,&lt;/P&gt;&lt;P&gt;Blue__Red_Ind&lt;/P&gt;&lt;P&gt;From qvdb;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;Load *,If(Len(Trim(Blue_Red_Ind)) &amp;gt; 0, Blue_Red_Ind) Resident Table_B;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Table_B;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 21:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350755#M130015</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-07-13T21:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Two Tables Join</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350756#M130016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you are right! , you have to create a new keyfield with by the concatenation with that two fields (Name and City) and make a link_table where you would have the Name and City fields and a KeyField to link the qvda and the qvdb tables!, hope this helps, Good Luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 21:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350756#M130016</guid>
      <dc:creator>edg_baltazar</dc:creator>
      <dc:date>2012-07-13T21:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Two Tables Join</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350757#M130017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First,&amp;nbsp; why do you want 2 city fields?&amp;nbsp; Do they house different information?&amp;nbsp; i.e. Birth City, and Work City..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, I would try a mapping table.&amp;nbsp; This way, you don't have to do a join, yet you get the same result and don't run the risk of getting weird data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Untested)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Create Mapping Table&lt;/P&gt;&lt;P&gt;MapTable:&lt;/P&gt;&lt;P&gt;Mapping Load Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&amp;amp;'|'&amp;amp;City as NameCity,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blue__Red_Ind&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;Table B;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Apply Map to table A's load&lt;/P&gt;&lt;P&gt;Table_A:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Name,&lt;/P&gt;&lt;P&gt;City,&lt;/P&gt;&lt;P&gt;Occupation,&lt;/P&gt;&lt;P&gt;Income,&lt;/P&gt;&lt;P&gt;ApplyMap('MapTable',Name&amp;amp;'|'&amp;amp;City,Null()) as Blue__Red_Ind&lt;/P&gt;&lt;P&gt;From qvda;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The apply map might not work when you are doing the concatenation in the expression.&amp;nbsp; If not, I would create a temp table, do the concatenation, save it off, then load from that file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 21:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350757#M130017</guid>
      <dc:creator>goldnejea8</dc:creator>
      <dc:date>2012-07-13T21:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Two Tables Join</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350758#M130018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used Mayil's solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But below part didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;Load *,If(Len(Trim(Blue_Red_Ind)) &amp;gt; 0, Blue_Red_Ind) Resident Table_B;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to change it to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_C:&lt;/P&gt;&lt;P&gt;Load *,&amp;nbsp; Resident Table_B;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Drop Table&amp;nbsp; Table_B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=========================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having said that I got joined view of Table A combined with Table_B Data. ofocurse need to test if this join has extracted correct data from Table_B.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 21:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350758#M130018</guid>
      <dc:creator />
      <dc:date>2012-07-13T21:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Two Tables Join</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350759#M130019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following script which will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempA:&lt;/P&gt;&lt;P&gt;load Name &amp;amp; '|' &amp;amp; City as Key, Occupation, Income;&lt;/P&gt;&lt;P&gt;load * from qvda;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempB:&lt;/P&gt;&lt;P&gt;load Name &amp;amp; '|' &amp;amp; City as Key, SSN, Blue_Red_Ind;&lt;/P&gt;&lt;P&gt;load * from qvdb;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempAB:&lt;/P&gt;&lt;P&gt;load Key resident TempA;&lt;/P&gt;&lt;P&gt;Concatenate load Key resident TempB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableAB:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load distinct Key resident TempAB;&lt;/P&gt;&lt;P&gt;Left Join (TableAB) load * resident TempA;&lt;/P&gt;&lt;P&gt;Left Join (TableAB) load * resident TempB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Tables TempA, TempB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;load *, SubField(Key,'|',1) as Name, SubField(Key,'|',2) as City;&lt;/P&gt;&lt;P&gt;load * resident TableAB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Field Key From Table;&lt;/P&gt;&lt;P&gt;Drop Table TableAB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Nagaian Krishnamoorthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 22:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350759#M130019</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2012-07-13T22:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Two Tables Join</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350760#M130020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok will try both the methods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 22:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350760#M130020</guid>
      <dc:creator />
      <dc:date>2012-07-13T22:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Two Tables Join</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350761#M130021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried something in my personal edition (Qv version 11). to join three tables A,B and C.&lt;/P&gt;&lt;P&gt;My purpose was to extract extra information from Table B and C for Name and City combination mentioned in Table A. i hope this looks ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please see attached input files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;BR /&gt;LOAD Name, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; City, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Occupation, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Income&lt;BR /&gt;FROM&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;LOAD &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; City, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SSN, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blue_Red_Ind, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Income&lt;BR /&gt;FROM&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;City,&lt;BR /&gt;State,&lt;BR /&gt;Country&lt;BR /&gt;From &lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1);&lt;/C&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 03:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350761#M130021</guid>
      <dc:creator />
      <dc:date>2012-07-16T03:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Two Tables Join</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350762#M130022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Input file and result screenshots attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA, Table B and Table C in sequence.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18472" class="jive-image-thumbnail jive-image" onclick="" alt="TableA.png" src="https://community.qlik.com/legacyfs/online/18472_TableA.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18473" class="jive-image-thumbnail jive-image" onclick="" alt="Tableb.png" src="https://community.qlik.com/legacyfs/online/18473_Tableb.png" width="450" /&gt;&lt;IMG __jive_id="18474" class="jive-image" alt="TableC.png" src="https://community.qlik.com/legacyfs/online/18474_TableC.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="18476" class="jive-image-thumbnail jive-image" onclick="" alt="Result of join.png" src="/legacyfs/online/18476_Result of join.png" width="450" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 03:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350762#M130022</guid>
      <dc:creator />
      <dc:date>2012-07-16T03:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Two Tables Join</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350763#M130023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrepeter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached qvw file wherein i have linked the two tables using linktable..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Snehal Bhosle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 12:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350763#M130023</guid>
      <dc:creator />
      <dc:date>2012-07-16T12:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Two Tables Join</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350764#M130024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mayil, Snehal, &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/krishnamoorthy" id="jive-38270709223114784765" onmouseout="" onmouseover=""&gt;krishnamoorthy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot all of you for providing solutions.&lt;/P&gt;&lt;P&gt;As I mentioned earlier inner join also seems to be working somehow. But good to know these other options incase inner join gives other problems. This was really healpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 12:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350764#M130024</guid>
      <dc:creator />
      <dc:date>2012-07-16T12:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Two Tables Join</title>
      <link>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350765#M130025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I meant to say "Left Join" seems to be working as of now. But good to know these other options incase left join gives other problems. This was really helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 13:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-Tables-Join/m-p/350765#M130025</guid>
      <dc:creator />
      <dc:date>2012-07-16T13:04:24Z</dc:date>
    </item>
  </channel>
</rss>

