<?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: Bad Left Join + Where in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bad-Left-Join-Where/m-p/675083#M245113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Complex where-conditions are difficult to impossible but you could use a multi-step method with load + join and in a second step make the where-condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test1:&lt;/P&gt;&lt;P&gt;Load CATG_ID, OtherFields From TABLE1.QVD (QVD);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; join&lt;/P&gt;&lt;P&gt;Load CATG_ID, OtherFields From TABLE2.QVD (QVD);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test2:&lt;/P&gt;&lt;P&gt;Noconcatenate Load * Resident Test1 Where YourCondition;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively for many cases you could use mapping with applymap() to build your tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2014 15:30:35 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2014-08-13T15:30:35Z</dc:date>
    <item>
      <title>Bad Left Join + Where</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-Left-Join-Where/m-p/675082#M245112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to translate this sql below to qlikview extracting the data from these two qvds: TABLE1.QVD and TABLE2.QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H6&gt;TEST:&lt;/H6&gt;&lt;H6&gt;SQL SELECT HST.*, CFC.INICIO,CFC.FIM &lt;/H6&gt;&lt;H6&gt;&amp;nbsp; FROM TABLE1, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;TABLE2&lt;/SPAN&gt;&lt;/H6&gt;&lt;H6&gt;&amp;nbsp; WHERE TABLE1.CATG_ID=TABLE2.CATG_ID&lt;/H6&gt;&lt;H6&gt;&amp;nbsp; AND&amp;nbsp; TABLE1.QTCONSUMO BETWEEN TABLE2.INICIO AND TABLE2.FIM;&lt;/H6&gt;&lt;H6&gt;STORE TEST INTO TEST.QVD(QVD);&lt;/H6&gt;&lt;H6&gt;DROP TABLE TEST;&lt;/H6&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know i can use left join, but the problem is that the "where" condition uses fields from both qvds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 14:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-Left-Join-Where/m-p/675082#M245112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-13T14:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Left Join + Where</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-Left-Join-Where/m-p/675083#M245113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Complex where-conditions are difficult to impossible but you could use a multi-step method with load + join and in a second step make the where-condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test1:&lt;/P&gt;&lt;P&gt;Load CATG_ID, OtherFields From TABLE1.QVD (QVD);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; join&lt;/P&gt;&lt;P&gt;Load CATG_ID, OtherFields From TABLE2.QVD (QVD);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test2:&lt;/P&gt;&lt;P&gt;Noconcatenate Load * Resident Test1 Where YourCondition;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively for many cases you could use mapping with applymap() to build your tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 15:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-Left-Join-Where/m-p/675083#M245113</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-08-13T15:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Left Join + Where</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-Left-Join-Where/m-p/675084#M245114</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;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TEST:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load CATG_ID,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;....&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From TABLE1.QVD (QVD);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;join&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load CATG_ID,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;.....&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From TABLE2.QVD (QVD);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FINAL_TEST:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load * Resident TEST &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: bold;"&gt;QTCONSUMO&amp;gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: bold;"&gt;INICIO&lt;/SPAN&gt; AND &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: bold;"&gt;QTCONSUMO&lt;/SPAN&gt;&amp;lt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: bold;"&gt;FIM&lt;/SPAN&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;H6 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/H6&gt;&lt;H6 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;STORE FINAL_TEST INTO TEST.QVD(QVD);&lt;/H6&gt;&lt;P&gt;&lt;/P&gt;&lt;H6 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DROP TABLE TEST;&lt;/H6&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: bold;"&gt;DROP TABLE FINAL_TEST;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: bold;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 15:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-Left-Join-Where/m-p/675084#M245114</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-08-13T15:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Left Join + Where</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-Left-Join-Where/m-p/675085#M245115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks max!&lt;/P&gt;&lt;P&gt;but your way didnt work, because the FINAL_TEST table doesn't exist. So i have to use NOCONCATENATE to force qlikview doesn't mix tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 18:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-Left-Join-Where/m-p/675085#M245115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-13T18:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Bad Left Join + Where</title>
      <link>https://community.qlik.com/t5/QlikView/Bad-Left-Join-Where/m-p/675086#M245116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus! Noconcatenate solved my question!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2014 18:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bad-Left-Join-Where/m-p/675086#M245116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-13T18:13:14Z</dc:date>
    </item>
  </channel>
</rss>

