<?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 Left Join use WHERE? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-Join-use-WHERE/m-p/233384#M84921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a temporary product table within a script called TempProduct06&lt;/P&gt;&lt;P&gt;This contains a product type field (pro_Type)...&lt;/P&gt;&lt;P&gt;Types = A, B, C, D etc...&lt;/P&gt;&lt;P&gt;Within this table I have a field called pro_Rpt02 which contains analysis codes.&lt;/P&gt;&lt;P&gt;For Product Type D, we need to add grouping.&lt;/P&gt;&lt;P&gt;The following is an extract from my script which is workable...&lt;/P&gt;&lt;P&gt;** Code Starts **&lt;/P&gt;&lt;P&gt;// Create Inline Table&lt;/P&gt;&lt;P&gt;TempRpt02DoorsGrouping:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;pro_Rpt02,pro_Rpt02Grouping&lt;/P&gt;&lt;P&gt;"","Grp 9 (others)"&lt;/P&gt;&lt;P&gt;DCBA,"Grp 1"&lt;/P&gt;&lt;P&gt;DCBB,"Grp 1"&lt;/P&gt;&lt;P&gt;DMBA,"Grp 1"&lt;/P&gt;&lt;P&gt;DMBC,"Grp 1"&lt;/P&gt;&lt;P&gt;DCEA,"Grp 2"&lt;/P&gt;&lt;P&gt;DCHC,"Grp 3"&lt;/P&gt;&lt;P&gt;DCHD,"Grp 3"&lt;/P&gt;&lt;P&gt;DCHE,"Grp 3"&lt;/P&gt;&lt;P&gt;DCHF,"Grp 3"&lt;/P&gt;&lt;P&gt;DCHN,"Grp 3"];&lt;/P&gt;&lt;P&gt;// Join to Temp Product Table&lt;/P&gt;&lt;P&gt;LEFT JOIN (TempProduct06)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;pro_Rpt02,&lt;/P&gt;&lt;P&gt;pro_Rpt02Grouping&lt;/P&gt;&lt;P&gt;RESIDENT TempRpt02DoorsGrouping;&lt;/P&gt;&lt;P&gt;// Drop Table&lt;/P&gt;&lt;P&gt;Drop Table TempRpt02DoorsGrouping;&lt;/P&gt;&lt;P&gt;** Code Ends **&lt;/P&gt;&lt;P&gt;Ideally, when doing my left join, I would like to say that this should only be done where the TempProduct06 pro_Type field = "D"&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Nov 2009 21:40:35 GMT</pubDate>
    <dc:creator>pkelly</dc:creator>
    <dc:date>2009-11-05T21:40:35Z</dc:date>
    <item>
      <title>Left Join use WHERE?</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-use-WHERE/m-p/233384#M84921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a temporary product table within a script called TempProduct06&lt;/P&gt;&lt;P&gt;This contains a product type field (pro_Type)...&lt;/P&gt;&lt;P&gt;Types = A, B, C, D etc...&lt;/P&gt;&lt;P&gt;Within this table I have a field called pro_Rpt02 which contains analysis codes.&lt;/P&gt;&lt;P&gt;For Product Type D, we need to add grouping.&lt;/P&gt;&lt;P&gt;The following is an extract from my script which is workable...&lt;/P&gt;&lt;P&gt;** Code Starts **&lt;/P&gt;&lt;P&gt;// Create Inline Table&lt;/P&gt;&lt;P&gt;TempRpt02DoorsGrouping:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;pro_Rpt02,pro_Rpt02Grouping&lt;/P&gt;&lt;P&gt;"","Grp 9 (others)"&lt;/P&gt;&lt;P&gt;DCBA,"Grp 1"&lt;/P&gt;&lt;P&gt;DCBB,"Grp 1"&lt;/P&gt;&lt;P&gt;DMBA,"Grp 1"&lt;/P&gt;&lt;P&gt;DMBC,"Grp 1"&lt;/P&gt;&lt;P&gt;DCEA,"Grp 2"&lt;/P&gt;&lt;P&gt;DCHC,"Grp 3"&lt;/P&gt;&lt;P&gt;DCHD,"Grp 3"&lt;/P&gt;&lt;P&gt;DCHE,"Grp 3"&lt;/P&gt;&lt;P&gt;DCHF,"Grp 3"&lt;/P&gt;&lt;P&gt;DCHN,"Grp 3"];&lt;/P&gt;&lt;P&gt;// Join to Temp Product Table&lt;/P&gt;&lt;P&gt;LEFT JOIN (TempProduct06)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;pro_Rpt02,&lt;/P&gt;&lt;P&gt;pro_Rpt02Grouping&lt;/P&gt;&lt;P&gt;RESIDENT TempRpt02DoorsGrouping;&lt;/P&gt;&lt;P&gt;// Drop Table&lt;/P&gt;&lt;P&gt;Drop Table TempRpt02DoorsGrouping;&lt;/P&gt;&lt;P&gt;** Code Ends **&lt;/P&gt;&lt;P&gt;Ideally, when doing my left join, I would like to say that this should only be done where the TempProduct06 pro_Type field = "D"&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 21:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-use-WHERE/m-p/233384#M84921</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2009-11-05T21:40:35Z</dc:date>
    </item>
    <item>
      <title>Left Join use WHERE?</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-use-WHERE/m-p/233385#M84922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;// Create Inline Table&lt;/P&gt;&lt;P&gt;TempRpt02DoorsGrouping:&lt;BR /&gt;LOAD *&lt;BR /&gt;&lt;STRONG&gt;,'D' as pro_Type&lt;/STRONG&gt;&lt;BR /&gt;INLINE [&lt;BR /&gt;...&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;// Join to Temp Product Table&lt;/P&gt;&lt;P&gt;LEFT JOIN (TempProduct06)&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT TempRpt02DoorsGrouping&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 04:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-use-WHERE/m-p/233385#M84922</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-11-06T04:00:40Z</dc:date>
    </item>
  </channel>
</rss>

