<?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 Problem with  left join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-left-join/m-p/407741#M1149547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have one load and one left join. After that i do a concatenate and then a left join. Now the last left join doesn't have any effect. In this example, I expect George to have a place of 'par'. I have attached the script. Very easy to load and run at your end. Please help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 May 2013 06:03:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-25T06:03:54Z</dc:date>
    <item>
      <title>Problem with  left join</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-left-join/m-p/407741#M1149547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have one load and one left join. After that i do a concatenate and then a left join. Now the last left join doesn't have any effect. In this example, I expect George to have a place of 'par'. I have attached the script. Very easy to load and run at your end. Please help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 May 2013 06:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-left-join/m-p/407741#M1149547</guid>
      <dc:creator />
      <dc:date>2013-05-25T06:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with  left join</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-left-join/m-p/407742#M1149548</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;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;name, age&lt;/P&gt;&lt;P&gt;ram,30&lt;/P&gt;&lt;P&gt;raj,40&lt;/P&gt;&lt;P&gt;ramji,50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;name,place&lt;/P&gt;&lt;P&gt;ram,kmu&lt;/P&gt;&lt;P&gt;ramji,pap&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="105"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="46"&gt;name&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="25"&gt;age&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="34"&gt;place&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;raj&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ram&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;kmu&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ramji&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;pap&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;name,age&lt;/P&gt;&lt;P&gt;george,25&lt;/P&gt;&lt;P&gt;Donald,28&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="105"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="46"&gt;name&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="25"&gt;age&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="34"&gt;place&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Donald&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;28&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;george&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;25&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;raj&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ram&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;kmu&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ramji&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;pap&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u do left join on the table above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;name, place&lt;/P&gt;&lt;P&gt;george,par&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note that now the join takes place on the combination of two fields name+place as these are the two common fields in the two tables and not only on name.&lt;/P&gt;&lt;P&gt;So u dnt get what u need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the desired result, use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;name, age&lt;/P&gt;&lt;P&gt;ram,30&lt;/P&gt;&lt;P&gt;raj,40&lt;/P&gt;&lt;P&gt;ramji,50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;name,place&lt;/P&gt;&lt;P&gt;ram,kmu&lt;/P&gt;&lt;P&gt;ramji,pap&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;tab2:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;name,age&lt;/P&gt;&lt;P&gt;george,25&lt;/P&gt;&lt;P&gt;Donald,28&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; left Join(tab2)&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;name, place&lt;/P&gt;&lt;P&gt;george,par&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(tab2)&lt;/P&gt;&lt;P&gt;LOAD * Resident tab1;&lt;/P&gt;&lt;P&gt;DROP Table tab1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 May 2013 08:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-left-join/m-p/407742#M1149548</guid>
      <dc:creator />
      <dc:date>2013-05-25T08:56:30Z</dc:date>
    </item>
  </channel>
</rss>

