<?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: left join but using first table data in where clause? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450036#M802608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;the best approach is to use the mapping tables and map required columns from &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 13.3333px;"&gt;Table1 in Table2 then use the where clause and group by&amp;nbsp; , will give you the results &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Nov 2017 05:42:35 GMT</pubDate>
    <dc:creator>avinashelite</dc:creator>
    <dc:date>2017-11-24T05:42:35Z</dc:date>
    <item>
      <title>left join but using first table data in where clause?</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450035#M802607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #323e4f; font-family: 'Verdana','sans-serif'; font-size: 10pt; mso-themecolor: text2; mso-themeshade: 191;"&gt;I want to use left join to obtain some information from second table, but I also want to use the column from the first table in the where clause, is it possible? By directly using it I got error message, just wondering how to get through this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #323e4f; font-family: 'Verdana','sans-serif'; font-size: 10pt; mso-themecolor: text2; mso-themeshade: 191;"&gt;The syntax is as below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;TableF:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;load&lt;/STRONG&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 10pt;"&gt;Column1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 10pt;"&gt;Column2&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 10pt;"&gt;Column3&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;resident&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;left&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;join&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 10pt; font-family: 'Courier New';"&gt;load&lt;/STRONG&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 10pt;"&gt;Column1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;(Column4) &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 10pt;"&gt;Column5&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; table2&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;where&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 10pt;"&gt;table2.column6&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;(2014,11,21)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table2.column6&amp;lt;table1.column3&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;group&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;by&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 10pt;"&gt;Column1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450035#M802607</guid>
      <dc:creator>ronaldwang</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: left join but using first table data in where clause?</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450036#M802608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;the best approach is to use the mapping tables and map required columns from &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 13.3333px;"&gt;Table1 in Table2 then use the where clause and group by&amp;nbsp; , will give you the results &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 05:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450036#M802608</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-11-24T05:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: left join but using first table data in where clause?</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450037#M802609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that means, In Table2 you have some Qualify Statement? Isn't it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 06:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450037#M802609</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-24T06:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: left join but using first table data in where clause?</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450038#M802610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, I am not using qualify statement. the syntax just to show which table I am referring to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 03:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450038#M802610</guid>
      <dc:creator>ronaldwang</dc:creator>
      <dc:date>2017-11-27T03:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: left join but using first table data in where clause?</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450039#M802611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, do you have link to any examples?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 03:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450039#M802611</guid>
      <dc:creator>ronaldwang</dc:creator>
      <dc:date>2017-11-27T03:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: left join but using first table data in where clause?</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450040#M802612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get alias names like Table2, You must need Qualify statement to bifurcate different level on condition &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 03:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450040#M802612</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-27T03:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: left join but using first table data in where clause?</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450041#M802613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Yes, even I have use qualify statement and being able to use table2.*, I still won't be able to refer back to table1 column from the left join statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 04:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450041#M802613</guid>
      <dc:creator>ronaldwang</dc:creator>
      <dc:date>2017-11-27T04:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: left join but using first table data in where clause?</title>
      <link>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450042#M802614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load Column1, Column2, Column3 From T1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qualify *;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load Column1, Column4, Column3, Column6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableF:&lt;/P&gt;&lt;P&gt;load Column1,&lt;/P&gt;&lt;P&gt;Column2,&lt;/P&gt;&lt;P&gt;Column3&lt;/P&gt;&lt;P&gt;resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (TableF)&lt;/P&gt;&lt;P&gt;load Table2.Column1,&lt;/P&gt;&lt;P&gt;sum(Table2.Column4) as Column5&lt;/P&gt;&lt;P&gt;Resident table2&lt;/P&gt;&lt;P&gt;where table2.column6&amp;gt;MakeDate(2014,11,21)&lt;/P&gt;&lt;P&gt;table2.column6&amp;lt;table1.column3&lt;/P&gt;&lt;P&gt;group by Column1; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 05:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/left-join-but-using-first-table-data-in-where-clause/m-p/1450042#M802614</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-11-27T05:24:56Z</dc:date>
    </item>
  </channel>
</rss>

