<?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: Joins on tables that have data from multiple QVD files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Joins-on-tables-that-have-data-from-multiple-QVD-files/m-p/327834#M120726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;When you use * (WildChar) to load multiple files in one table, QlikView internally load all the tables separately and then concatenates tables to root table, Since the field names are same.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;Additional note – QlikView loads the entire table in your application 1&lt;SUP&gt;st&lt;/SUP&gt;and perform all Joins/Concatenation at last when script execution finishes.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;Meaning to say, for example you have 2 table for sales (Sales_1&amp;amp;Sales_2) and 2tables for Region (Region_1 &amp;amp; Region_2).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;QlikView LoadsAll tables 1&lt;SUP&gt;st&lt;/SUP&gt; in order i.e. Sales_1 , Sales_2 , Region_1 &amp;amp;Region_2&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-left: 0.75in;"&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now QlikView performsJoin/Concatenate. i.e. Load Sales_1 and Concatenate the Sales_2&amp;nbsp; table to Sales_1 table since the field namesare same.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Next step in ourcode has ‘Join’, so QlikView loads the Region_1 and joins the same to the resultant Sales table.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Next step QlikView Will load the Region_2 and will try to concatenate the Region_2 table with the resultant Sales table but&amp;nbsp; field name are not same, it links the Region_2 table with sales table with composite key.Here Joining between the tables are happening before the Concatenation. If you see in your data model, you may have synthetic key because the same field name.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;To avoid this,you may load the entire table with * (WildChar) 1&lt;SUP&gt;st&lt;/SUP&gt; and can do the joining.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-left: 0.75in;"&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You may also try something like below one.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;SALES:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;LOAD&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REGION_ID,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALES_AMT&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;FROM [../FolderName/SALES_*.QVD] (QVD);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;Region: &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;LOAD&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REGION_ID,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REGION&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;FROM [../FolderName/REGION_*.QVD] (QVD);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;INNER JOIN(SALES)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;LOAD * RESIDENT Region;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;DROP TABLE Region;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope i made it Clear&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-Sridhar&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Dec 2011 09:29:06 GMT</pubDate>
    <dc:creator>sridhar240784</dc:creator>
    <dc:date>2011-12-29T09:29:06Z</dc:date>
    <item>
      <title>Joins on tables that have data from multiple QVD files</title>
      <link>https://community.qlik.com/t5/QlikView/Joins-on-tables-that-have-data-from-multiple-QVD-files/m-p/327833#M120725</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;I have monthly QVD files for Sales and Region table. I want to load all the QVDs for Sales and Region and then perform a INNER JOIN between them. I am doing following things - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #993300;"&gt;SALES:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #993300;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REGION_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALES_AMT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #993300;"&gt;FROM [../FolderName/SALES_*.QVD] (QVD);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #993300;"&gt;INNER JOIN (SALES)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #993300;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REGION_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #993300;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REGION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #993300;"&gt;FROM [../FolderName/REGION_*.QVD] (QVD);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this join is not giving the correct data. In order to work this I have to create resident tables and then perform join on resident tables which is shown below - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;SALES:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REGION_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALES_AMT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;FROM [../FolderName/SALES_*.QVD] (QVD);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;REGION:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REGION_ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REGION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;FROM [../FolderName/REGION_*.QVD] (QVD);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;RESIDENT_SALES:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REGION_ID AS RID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALES_AMT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;RESIDENT SALES;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;DROP TABLE SALES;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;INNER JOIN (RESIDENT_SALES)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REGION_ID AS RID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REGION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;RESIDENT REGION;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300; font-family: courier new,courier;"&gt;DROP TABLE REGION;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to achieve this without resident tables ? This approach takes lot of time when i have high volumes of data in Region and Sales table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 07:54:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joins-on-tables-that-have-data-from-multiple-QVD-files/m-p/327833#M120725</guid>
      <dc:creator />
      <dc:date>2011-12-29T07:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Joins on tables that have data from multiple QVD files</title>
      <link>https://community.qlik.com/t5/QlikView/Joins-on-tables-that-have-data-from-multiple-QVD-files/m-p/327834#M120726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;When you use * (WildChar) to load multiple files in one table, QlikView internally load all the tables separately and then concatenates tables to root table, Since the field names are same.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;Additional note – QlikView loads the entire table in your application 1&lt;SUP&gt;st&lt;/SUP&gt;and perform all Joins/Concatenation at last when script execution finishes.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;Meaning to say, for example you have 2 table for sales (Sales_1&amp;amp;Sales_2) and 2tables for Region (Region_1 &amp;amp; Region_2).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;QlikView LoadsAll tables 1&lt;SUP&gt;st&lt;/SUP&gt; in order i.e. Sales_1 , Sales_2 , Region_1 &amp;amp;Region_2&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-left: 0.75in;"&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now QlikView performsJoin/Concatenate. i.e. Load Sales_1 and Concatenate the Sales_2&amp;nbsp; table to Sales_1 table since the field namesare same.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Next step in ourcode has ‘Join’, so QlikView loads the Region_1 and joins the same to the resultant Sales table.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Next step QlikView Will load the Region_2 and will try to concatenate the Region_2 table with the resultant Sales table but&amp;nbsp; field name are not same, it links the Region_2 table with sales table with composite key.Here Joining between the tables are happening before the Concatenation. If you see in your data model, you may have synthetic key because the same field name.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;To avoid this,you may load the entire table with * (WildChar) 1&lt;SUP&gt;st&lt;/SUP&gt; and can do the joining.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-left: 0.75in;"&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You may also try something like below one.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;SALES:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;LOAD&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REGION_ID,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SALES_AMT&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;FROM [../FolderName/SALES_*.QVD] (QVD);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;Region: &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;LOAD&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REGION_ID,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REGION&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;FROM [../FolderName/REGION_*.QVD] (QVD);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;INNER JOIN(SALES)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;LOAD * RESIDENT Region;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 1.5in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 10pt;"&gt;DROP TABLE Region;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope i made it Clear&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-Sridhar&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 09:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Joins-on-tables-that-have-data-from-multiple-QVD-files/m-p/327834#M120726</guid>
      <dc:creator>sridhar240784</dc:creator>
      <dc:date>2011-12-29T09:29:06Z</dc:date>
    </item>
  </channel>
</rss>

