<?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 How to get unmatched records using LOAD statement? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-unmatched-records-using-LOAD-statement/m-p/148055#M26418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the example Amit&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;&lt;B&gt;&lt;I&gt;Shumail Hussain&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2009 16:25:37 GMT</pubDate>
    <dc:creator>shumailh</dc:creator>
    <dc:date>2009-07-01T16:25:37Z</dc:date>
    <item>
      <title>How to get unmatched records using LOAD statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-unmatched-records-using-LOAD-statement/m-p/148053#M26416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two load statement named as V2 and V3, How can i join both tables that i can get unmatched records from both?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;V2:&lt;BR /&gt;LOAD CARD_NO,'P' as V2,LoadDate as LoadDate_V2,CARD_NO as CARD2, BASE_SEGMENT_NBR AS BASE_SEGMENT_NBR2&lt;BR /&gt;, MID(CARD_NO,1,17) as Mid_14_2, MID(CARD_NO,18,1) as Replacement2&lt;BR /&gt;RESIDENT FGBCHB&lt;BR /&gt;WHERE&lt;BR /&gt;round(CUR_BAL)&amp;lt;&amp;gt;0 AND&lt;BR /&gt;(&lt;BR /&gt; (index('LF', BLOCK1) AND index('ACDFGILNOPQTUVWXZ ', BLOCK2) AND index('ACDFGILNOPQTUVWXZ ', BLOCK3)) OR&lt;BR /&gt; (index('ACDFGILNOPQTUVWXZ ', BLOCK1) AND index('LF',BLOCK2) AND index('ACDFGILNOPQTUVWXZ ', BLOCK3)) OR&lt;BR /&gt; (index('ACDFGILNOPQTUVWXZ ', BLOCK1) AND index('ACDFGILNOPQTUVWXZ ', BLOCK2) AND index('LF', BLOCK3))&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;V3:&lt;BR /&gt;LOAD CARD_NO,'P' as V3,LoadDate as LoadDate_V3,CARD_NO as CARD3, BASE_SEGMENT_NBR AS BASE_SEGMENT_NBR3&lt;BR /&gt;, MID(CARD_NO,1,17) as Mid_14_3, MID(CARD_NO,18,1) as Replacement3&lt;BR /&gt;RESIDENT FGBCHB&lt;BR /&gt;WHERE NOT Exists(CARD1, CARD_NO) and NOT Exists(CARD2, CARD_NO);&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Below is the sql server query which i wanted to convert in Load statement in QlikView.&lt;/P&gt;&lt;P&gt;SELECT s2.BASE_SEGMENT_NBR, max(s2.[card_no]) as card_no, s2.Mid_14, max(s2.Replacement) as Replacement&lt;BR /&gt;FROM vwActiveCard_Step2 s2&lt;BR /&gt;left outer join vwActiveCard_Step3 s3 on s2.BASE_SEGMENT_NBR = s3.BASE_SEGMENT_NBR and s2.mid_14 = s3.mid_14&lt;BR /&gt;where s3.BASE_SEGMENT_NBR is null and s3.card_no is null group by s2.BASE_SEGMENT_NBR, s2.Mid_14&lt;BR /&gt;&lt;BR /&gt;for more detail http://community.qlik.com/forums/p/17567/68869.aspx#68869&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 23:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-unmatched-records-using-LOAD-statement/m-p/148053#M26416</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2009-06-30T23:51:09Z</dc:date>
    </item>
    <item>
      <title>How to get unmatched records using LOAD statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-unmatched-records-using-LOAD-statement/m-p/148054#M26417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;An example solution for un-matching records:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-- First table&lt;BR /&gt; V1:&lt;BR /&gt;LOAD V1&lt;BR /&gt;FROM xyz&lt;/P&gt;&lt;P&gt;-- Second table&lt;BR /&gt;V2:&lt;BR /&gt;LOAD V2&lt;BR /&gt;FROM xyz&lt;/P&gt;&lt;P&gt;-- All records from both tables&lt;BR /&gt;All:&lt;BR /&gt;load V1 as V&lt;BR /&gt;resident V1;&lt;BR /&gt;concatenate (All)&lt;BR /&gt;load V2 as V&lt;BR /&gt;resident V2;&lt;/P&gt;&lt;P&gt;-- Common records&lt;BR /&gt;M:&lt;BR /&gt;load V as m&lt;BR /&gt;resident All&lt;BR /&gt;where exists(V1,V) and exists(V2,V);&lt;/P&gt;&lt;P&gt;-- Unmatching records&lt;BR /&gt;U:&lt;BR /&gt;load V as u&lt;BR /&gt;resident All&lt;BR /&gt;where not exists(m,V);&lt;/P&gt;&lt;P&gt;-- drop unwanted tables&lt;BR /&gt;drop tables All,M;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 13:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-unmatched-records-using-LOAD-statement/m-p/148054#M26417</guid>
      <dc:creator />
      <dc:date>2009-07-01T13:32:42Z</dc:date>
    </item>
    <item>
      <title>How to get unmatched records using LOAD statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-unmatched-records-using-LOAD-statement/m-p/148055#M26418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the example Amit&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;&lt;B&gt;&lt;I&gt;Shumail Hussain&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 16:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-unmatched-records-using-LOAD-statement/m-p/148055#M26418</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2009-07-01T16:25:37Z</dc:date>
    </item>
  </channel>
</rss>

