<?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 question - Where clause in resident table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-question-Where-clause-in-resident-table/m-p/531625#M692019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[OLD_DRD]:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[ACCID,ORDDT_OLD&lt;/P&gt;&lt;P&gt;A123,&amp;nbsp; 5/1/2012&lt;/P&gt;&lt;P&gt;A123,&amp;nbsp; 2/1/2013&lt;/P&gt;&lt;P&gt;A123,&amp;nbsp; 3/1/2013&lt;/P&gt;&lt;P&gt;A123,&amp;nbsp; 5/1/2013&lt;/P&gt;&lt;P&gt;A990,&amp;nbsp; 9/2/2012&lt;/P&gt;&lt;P&gt;A990,&amp;nbsp; 1/1/2013&lt;/P&gt;&lt;P&gt;A990,&amp;nbsp; 7/1/2013&lt;/P&gt;&lt;P&gt;A990,&amp;nbsp; 8/15/2013];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[CHK_ORD]:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[ACC_ID_N, ORD_NEW&lt;/P&gt;&lt;P&gt;A123,&amp;nbsp; 4/30/2013&lt;/P&gt;&lt;P&gt;A990,&amp;nbsp; 8/1/2013&lt;/P&gt;&lt;P&gt;A990,&amp;nbsp; 6/1/2013];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (CHK_ORD)&amp;nbsp; load &lt;/P&gt;&lt;P&gt;ACCID as ACC_ID_N,&lt;/P&gt;&lt;P&gt;ORDDT_OLD &lt;/P&gt;&lt;P&gt;resident OLD_DRD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;ACC_ID_N,&lt;/P&gt;&lt;P&gt;ORD_NEW,&lt;/P&gt;&lt;P&gt;max(if(ORDDT_OLD&amp;lt;ORD_NEW,ORDDT_OLD)) as ORDDT_OLD&lt;/P&gt;&lt;P&gt;Resident CHK_ORD&lt;/P&gt;&lt;P&gt;group by ACC_ID_N,ORD_NEW;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table OLD_DRD, CHK_ORD;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Aug 2013 19:09:16 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-08-26T19:09:16Z</dc:date>
    <item>
      <title>Load question - Where clause in resident table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-question-Where-clause-in-resident-table/m-p/531622#M692016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a special requirement to identify the previous order date for a set of orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a simple load script in which I am trying to simulate the scenario.&lt;/P&gt;&lt;P&gt;For some reason I am getting a field not found error. Would some one please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;[OLD_DRD]:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;load&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[ACCID,ORDDT_OLD&lt;BR /&gt; A123,5/1/2012&lt;BR /&gt; A123,2/1/2013&lt;BR /&gt; A123,3/1/2013&lt;BR /&gt; A123,5/1/2013&lt;BR /&gt; A990,9/2/2012&lt;BR /&gt; A990,1/1/2013&lt;BR /&gt; A990,7/1/2013&lt;BR /&gt; A990,8/15/2013]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; [CHK_ORD]:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;load&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;[ACC_ID_N, ORD_NEW&lt;BR /&gt; A123,4/30/2013&lt;BR /&gt; A990,8/1/2013&lt;BR /&gt; A990,6/1/2013&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;left&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;join&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; (CHK_ORD)&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;load&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ACCID&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ACC_ID_N&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ORDDT_OLD&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;LAST_ORD_DT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; OLD_DRD &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;where&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ACC_ID_N&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ACCID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ORDDT_OLD&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ORD_NEW&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;//or something like this &lt;BR /&gt; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where ACCID = ACC_ID_N and ORDDT_OLD &amp;lt; ORD_NEW;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// Final Table will look like this&lt;BR /&gt; // ACC_ID_N,&amp;nbsp; ORD_NEW,&amp;nbsp;&amp;nbsp;&amp;nbsp; LAST_ORD_DT&lt;BR /&gt; // A123,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4/30/2013,&amp;nbsp; 3/1/2013&lt;BR /&gt; // A990,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8/1/2013,&amp;nbsp;&amp;nbsp; 7/1/2013&lt;BR /&gt; // A990,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/1/2013,&amp;nbsp;&amp;nbsp; 1/1/2013&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;drop&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; OLD_ORD; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Aji Paul.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 16:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-question-Where-clause-in-resident-table/m-p/531622#M692016</guid>
      <dc:creator />
      <dc:date>2013-08-26T16:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Load question - Where clause in resident table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-question-Where-clause-in-resident-table/m-p/531623#M692017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your [OLD_DRD] table doesn't have a field named ORD_NEW. Also, your last load statement is missing a group by clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;join&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; (CHK_ORD) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ACCID&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ACC_ID_N&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ORDDT_OLD&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;LAST_ORD_DT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; OLD_DRD &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Exists&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ACC_ID_N&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ACCID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ORDDT_OLD&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;ORD_NEW&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;&lt;STRONG&gt;group by ACCID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 16:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-question-Where-clause-in-resident-table/m-p/531623#M692017</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-26T16:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Load question - Where clause in resident table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-question-Where-clause-in-resident-table/m-p/531624#M692018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am looking for is a final table as shown&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// Final Table will look like this&lt;BR /&gt; // ACC_ID_N,&amp;nbsp; ORD_NEW,&amp;nbsp;&amp;nbsp;&amp;nbsp; LAST_ORD_DT&lt;BR /&gt; // A123,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4/30/2013,&amp;nbsp; 3/1/2013&lt;BR /&gt; // A990,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8/1/2013,&amp;nbsp; 7/1/2013&lt;BR /&gt; // A990,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/1/2013,&amp;nbsp; 1/1/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 18:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-question-Where-clause-in-resident-table/m-p/531624#M692018</guid>
      <dc:creator />
      <dc:date>2013-08-26T18:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Load question - Where clause in resident table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-question-Where-clause-in-resident-table/m-p/531625#M692019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[OLD_DRD]:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[ACCID,ORDDT_OLD&lt;/P&gt;&lt;P&gt;A123,&amp;nbsp; 5/1/2012&lt;/P&gt;&lt;P&gt;A123,&amp;nbsp; 2/1/2013&lt;/P&gt;&lt;P&gt;A123,&amp;nbsp; 3/1/2013&lt;/P&gt;&lt;P&gt;A123,&amp;nbsp; 5/1/2013&lt;/P&gt;&lt;P&gt;A990,&amp;nbsp; 9/2/2012&lt;/P&gt;&lt;P&gt;A990,&amp;nbsp; 1/1/2013&lt;/P&gt;&lt;P&gt;A990,&amp;nbsp; 7/1/2013&lt;/P&gt;&lt;P&gt;A990,&amp;nbsp; 8/15/2013];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[CHK_ORD]:&lt;/P&gt;&lt;P&gt;load * inline&lt;/P&gt;&lt;P&gt;[ACC_ID_N, ORD_NEW&lt;/P&gt;&lt;P&gt;A123,&amp;nbsp; 4/30/2013&lt;/P&gt;&lt;P&gt;A990,&amp;nbsp; 8/1/2013&lt;/P&gt;&lt;P&gt;A990,&amp;nbsp; 6/1/2013];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (CHK_ORD)&amp;nbsp; load &lt;/P&gt;&lt;P&gt;ACCID as ACC_ID_N,&lt;/P&gt;&lt;P&gt;ORDDT_OLD &lt;/P&gt;&lt;P&gt;resident OLD_DRD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;ACC_ID_N,&lt;/P&gt;&lt;P&gt;ORD_NEW,&lt;/P&gt;&lt;P&gt;max(if(ORDDT_OLD&amp;lt;ORD_NEW,ORDDT_OLD)) as ORDDT_OLD&lt;/P&gt;&lt;P&gt;Resident CHK_ORD&lt;/P&gt;&lt;P&gt;group by ACC_ID_N,ORD_NEW;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table OLD_DRD, CHK_ORD;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 19:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-question-Where-clause-in-resident-table/m-p/531625#M692019</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-26T19:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Load question - Where clause in resident table</title>
      <link>https://community.qlik.com/t5/QlikView/Load-question-Where-clause-in-resident-table/m-p/531626#M692020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 19:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-question-Where-clause-in-resident-table/m-p/531626#M692020</guid>
      <dc:creator />
      <dc:date>2013-08-26T19:17:46Z</dc:date>
    </item>
  </channel>
</rss>

