<?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 with where clause querying the destination table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-join-with-where-clause-querying-the-destination-table/m-p/203880#M61047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would just do the join like you have there and then add another table like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NewTableName:&lt;/P&gt;&lt;P&gt;NOCONCATENATE LOAD&lt;/P&gt;&lt;P&gt;[RPT9_ACCOUNT],&lt;/P&gt;&lt;P&gt;[RPT9_CAT],&lt;/P&gt;&lt;P&gt;[RPT9_CAT2_TMP]&lt;/P&gt;&lt;P&gt;RESIDENT REGISTRATION_FLAGS_2B&lt;/P&gt;&lt;P&gt;WHERE [RTP9_CAT2]&amp;lt;&amp;gt;[RTP9_CAT2_TMP];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLES REGISTRATION_FLAGS_2B;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Apr 2011 16:26:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-07T16:26:54Z</dc:date>
    <item>
      <title>Left join with where clause querying the destination table</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-with-where-clause-querying-the-destination-table/m-p/203879#M61046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have looked in the forum and found some info that said I can't reference the target table in the where clause of a join. I am trying to do this and it is 'obviously' not working. I'm hoping someone can help me solve the issue with a QV way of doing things. Here is my code:&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;REGISTRATION_FLAGS_2B:&lt;BR /&gt;LOAD RPT9_ACCOUNT&lt;BR /&gt; ,RPT9_CAT2&lt;BR /&gt;RESIDENT REGISTRATION_FLAGS;&lt;BR /&gt;&lt;BR /&gt;LEFT JOIN (REGISTRATION_FLAGS_2B)&lt;BR /&gt;LOAD RPT9_ACCOUNT&lt;BR /&gt; ,RPT9_CAT2_TMP&lt;BR /&gt;RESIDENT REGISTRATION_FLAGS_2A&lt;BR /&gt;WHERE RPT9_CAT2 &amp;lt;&amp;gt; RPT9_CAT2_TMP;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically I want the table to be only Account #'s when the instances of CAT2 and CAT2_TMP are NOT the same.&lt;/P&gt;&lt;P&gt;Any help = Greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 16:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-with-where-clause-querying-the-destination-table/m-p/203879#M61046</guid>
      <dc:creator />
      <dc:date>2011-04-07T16:16:57Z</dc:date>
    </item>
    <item>
      <title>Left join with where clause querying the destination table</title>
      <link>https://community.qlik.com/t5/QlikView/Left-join-with-where-clause-querying-the-destination-table/m-p/203880#M61047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would just do the join like you have there and then add another table like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NewTableName:&lt;/P&gt;&lt;P&gt;NOCONCATENATE LOAD&lt;/P&gt;&lt;P&gt;[RPT9_ACCOUNT],&lt;/P&gt;&lt;P&gt;[RPT9_CAT],&lt;/P&gt;&lt;P&gt;[RPT9_CAT2_TMP]&lt;/P&gt;&lt;P&gt;RESIDENT REGISTRATION_FLAGS_2B&lt;/P&gt;&lt;P&gt;WHERE [RTP9_CAT2]&amp;lt;&amp;gt;[RTP9_CAT2_TMP];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLES REGISTRATION_FLAGS_2B;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 16:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-join-with-where-clause-querying-the-destination-table/m-p/203880#M61047</guid>
      <dc:creator />
      <dc:date>2011-04-07T16:26:54Z</dc:date>
    </item>
  </channel>
</rss>

