<?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: Load a file with sql conditioning to another file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-a-file-with-sql-conditioning-to-another-file/m-p/683751#M668291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Since you renamed your field, you should use alias&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; A&amp;nbsp; as [key1], B&amp;nbsp; as [CodeFile02_B], C&amp;nbsp; as [CodeFile02_C], D&amp;nbsp; as [CodeFile02_D] where &lt;STRONG&gt;exists(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[key1]&lt;/SPAN&gt;)&lt;/STRONG&gt;;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; select AA, BB, CC, DD from libe02.File02;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Oct 2014 13:06:00 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2014-10-23T13:06:00Z</dc:date>
    <item>
      <title>Load a file with sql conditioning to another file</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-file-with-sql-conditioning-to-another-file/m-p/683749#M668289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i've to load a file but the records must be conditioning to another load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; A&amp;nbsp; as [key1], B&amp;nbsp; as [CodeFile01_B], C&amp;nbsp; as [CodeFile01_C];&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; select A, B, C from lib01.File01;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; A&amp;nbsp; as [key1], B&amp;nbsp; as [CodeFile02_B], C&amp;nbsp; as [CodeFile02_C], D&amp;nbsp; as [CodeFile02_D], where exists(A);&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; select AA, BB, CC, DD from libe02.File02;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The record of File02 must be load if this exist in File01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i make this operation?&lt;/P&gt;&lt;P&gt;If i launch the script there isn't any error but the second load doesn't load any record!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 12:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-file-with-sql-conditioning-to-another-file/m-p/683749#M668289</guid>
      <dc:creator>mauriziob</dc:creator>
      <dc:date>2014-10-23T12:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Load a file with sql conditioning to another file</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-file-with-sql-conditioning-to-another-file/m-p/683750#M668290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change &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;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; A&amp;nbsp; as [key1], B&amp;nbsp; as [CodeFile02_B], C&amp;nbsp; as [CodeFile02_C], D&amp;nbsp; as [CodeFile02_D], where exists(A);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; select AA, BB, CC, DD from libe02.File02;&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;in&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;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; A&amp;nbsp; as [key1], B&amp;nbsp; as [CodeFile02_B], C&amp;nbsp; as [CodeFile02_C], D&amp;nbsp; as [CodeFile02_D], where exists(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[key1,&lt;/SPAN&gt;A);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; select AA, BB, CC, DD from libe02.File02;&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;let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 13:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-file-with-sql-conditioning-to-another-file/m-p/683750#M668290</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-10-23T13:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Load a file with sql conditioning to another file</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-file-with-sql-conditioning-to-another-file/m-p/683751#M668291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Since you renamed your field, you should use alias&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; A&amp;nbsp; as [key1], B&amp;nbsp; as [CodeFile02_B], C&amp;nbsp; as [CodeFile02_C], D&amp;nbsp; as [CodeFile02_D] where &lt;STRONG&gt;exists(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[key1]&lt;/SPAN&gt;)&lt;/STRONG&gt;;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; select AA, BB, CC, DD from libe02.File02;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 13:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-file-with-sql-conditioning-to-another-file/m-p/683751#M668291</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-23T13:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Load a file with sql conditioning to another file</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-file-with-sql-conditioning-to-another-file/m-p/683752#M668292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, the alias without the old field name don't function! I followed indication of Alessandro. Thanks to all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 13:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-file-with-sql-conditioning-to-another-file/m-p/683752#M668292</guid>
      <dc:creator>mauriziob</dc:creator>
      <dc:date>2014-10-23T13:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Load a file with sql conditioning to another file</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-file-with-sql-conditioning-to-another-file/m-p/683753#M668293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[key1] - Refers to field in first load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;A - Refers to field in your second load&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; A&amp;nbsp; as [key1], B&amp;nbsp; as [CodeFile02_B], C&amp;nbsp; as [CodeFile02_C], D&amp;nbsp; as [CodeFile02_D], where exists(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[key1],&lt;/SPAN&gt;A);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;You cannot use alias in where if it is created in same Load (Ex: Load A as B From Resident Temp Where B &amp;gt; 1 -- This won't work). &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;My reply didn't work since [key 1] was not present in where clause. You can try like this &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load * &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;where &lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-style: inherit;"&gt;exists(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;[key1]&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; A&amp;nbsp; as [key1], B&amp;nbsp; as [CodeFile02_B], C&amp;nbsp; as [CodeFile02_C], D&amp;nbsp; as [CodeFile02_D];&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp; select AA, BB, CC, DD from libe02.File02;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 13:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-file-with-sql-conditioning-to-another-file/m-p/683753#M668293</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-23T13:43:47Z</dc:date>
    </item>
  </channel>
</rss>

