<?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: Where Clause in Load Editor for linked tables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Where-Clause-in-Load-Editor-for-linked-tables/m-p/56561#M3797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it should go in this direction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'Chainware11g';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[cuf_cuactt]:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;cuacty, cuactk as Key, cuconn as Company_Lane, cudura, tsaaed, tsloai, cuasst, jrasst as Truck#;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT "a.cuacty", "a.cuconn", "a.cudura", "a.tsaaed", "a.tsloai", "a.cuactk", "b.cuasst", "b.jrasst"&lt;/P&gt;&lt;P&gt;FROM "ICJDR"."cuf_cuactt" a left join "ICJDR"."cuf_cuacta" b on "a. cuactk" = "b. cuactk"&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;WHERE "a.tsaaed" &amp;gt;= sysdate - '65';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereby the SQL statement depends on the syntax-rules from your database and you might need some google-searching to adjust it appropriate (surely there are various examples on how to join and alias 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>Mon, 07 May 2018 13:58:57 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-05-07T13:58:57Z</dc:date>
    <item>
      <title>Where Clause in Load Editor for linked tables</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Clause-in-Load-Editor-for-linked-tables/m-p/56556#M3792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am loading two different tables in the load editor. I have a where clause on the first table, which is applied on a datefield. The second table is linked to the first table by a mutual column. The second table has no date field, so currently it's loading all the data, which is 18 million rows. For minimizing my dataset I want to apply the where clause of the first table on the second table as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently loading the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IB CONNECT TO 'Chainware11g&lt;SPAN style="font-size: 13.3333px;"&gt;'&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD cuacty,&lt;/P&gt;&lt;P&gt;cuactk as Key,&lt;/P&gt;&lt;P&gt;cuconn as Company_Lane, &lt;/P&gt;&lt;P&gt;cudura, &lt;/P&gt;&lt;P&gt;tsaaed, &lt;/P&gt;&lt;P&gt;tsloai&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[cuf_cuactt]:&lt;/P&gt;&lt;P&gt;SELECT "cuacty", &lt;/P&gt;&lt;P&gt;"cuconn", &lt;/P&gt;&lt;P&gt;"cudura", &lt;/P&gt;&lt;P&gt;"tsaaed", &lt;/P&gt;&lt;P&gt;"tsloai",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "cuactk"&lt;/P&gt;&lt;P&gt;FROM "ICJDR"."cuf_cuactt" WHERE "tsaaed" &amp;gt;= sysdate - '65';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'Chainware11g';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD cuactk as Key,&lt;/P&gt;&lt;P&gt;cuasst,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; jrasst as Truck_Number;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;[cuf_cuacta]:&lt;/P&gt;&lt;P&gt;select "cuactk",&lt;/P&gt;&lt;P&gt;"cuasst",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "jrasst"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM "ICJDR"."cuf_cuacta";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 14:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Clause-in-Load-Editor-for-linked-tables/m-p/56556#M3792</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-05-04T14:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause in Load Editor for linked tables</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Clause-in-Load-Editor-for-linked-tables/m-p/56557#M3793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Pascal, you'd simply add a WHERE EXISTS clause in your second load statement. So something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD cuactk as Key,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;cuasst,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; jrasst as Truck_Number&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE EXISTS(Key,cuactk);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[cuf_cuacta]:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select "cuactk",&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;"cuasst",&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "jrasst"&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM "ICJDR"."cuf_cuacta";&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You can find more information on the EXISTS clause here: &lt;A href="https://help.qlik.com/en-US/sense/April2018/Subsystems/Hub/Content/Scripting/InterRecordFunctions/Exists.htm" title="https://help.qlik.com/en-US/sense/April2018/Subsystems/Hub/Content/Scripting/InterRecordFunctions/Exists.htm"&gt;https://help.qlik.com/en-US/sense/April2018/Subsystems/Hub/Content/Scripting/InterRecordFunctions/Exists.htm&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;And the WHERE clause here: &lt;A href="https://help.qlik.com/en-US/sense/April2018/Subsystems/Hub/Content/Scripting/ScriptRegularStatements/Load.htm" title="https://help.qlik.com/en-US/sense/April2018/Subsystems/Hub/Content/Scripting/ScriptRegularStatements/Load.htm"&gt;https://help.qlik.com/en-US/sense/April2018/Subsystems/Hub/Content/Scripting/ScriptRegularStatements/Load.htm&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I hope that helps,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Serina&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 21:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Clause-in-Load-Editor-for-linked-tables/m-p/56557#M3793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-04T21:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause in Load Editor for linked tables</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Clause-in-Load-Editor-for-linked-tables/m-p/56558#M3794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply, but unfortunately the script did not work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 07:30:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Clause-in-Load-Editor-for-linked-tables/m-p/56558#M3794</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-05-07T07:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause in Load Editor for linked tables</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Clause-in-Load-Editor-for-linked-tables/m-p/56559#M3795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What didn't work? Any load-error (probably some small syntax-issue) or had the second query more and/or different data loaded as expected? In the last case your Key field is just inappropriate to your target and I think it would be better to join both tables with your where-clause on the sql-side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 12:32:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Clause-in-Load-Editor-for-linked-tables/m-p/56559#M3795</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-05-07T12:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause in Load Editor for linked tables</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Clause-in-Load-Editor-for-linked-tables/m-p/56560#M3796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus, the script did not work because of the following load error: missing SELECT keyword (see the corresponding script below)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;How can I join both tables with my where clause? I already tried to do this but i'm no programmer so it's difficult for me to achieve this. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'Chainware11g';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD cuacty,&lt;/P&gt;&lt;P&gt;cuactk as Key,&lt;/P&gt;&lt;P&gt;cuconn as Company_Lane, &lt;/P&gt;&lt;P&gt;cudura, &lt;/P&gt;&lt;P&gt;tsaaed, &lt;/P&gt;&lt;P&gt;tsloai;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[cuf_cuactt]:&lt;/P&gt;&lt;P&gt;SELECT "cuacty", &lt;/P&gt;&lt;P&gt;"cuconn", &lt;/P&gt;&lt;P&gt;"cudura", &lt;/P&gt;&lt;P&gt;"tsaaed", &lt;/P&gt;&lt;P&gt;"tsloai",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "cuactk"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;FROM "ICJDR"."cuf_cuactt" WHERE "tsaaed" &amp;gt;= sysdate - '65';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'Chainware11g';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load cuactk as Key,&lt;/P&gt;&lt;P&gt;cuasst,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; jrasst as Truck#;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;[cuf_cuacta]:&lt;/P&gt;&lt;P&gt;select "cuactk",&lt;/P&gt;&lt;P&gt;"cuasst",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "jrasst"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM "ICJDR"."cuf_cuacta" WHERE EXISTS (Key, cuactk);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 13:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Clause-in-Load-Editor-for-linked-tables/m-p/56560#M3796</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-05-07T13:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause in Load Editor for linked tables</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Clause-in-Load-Editor-for-linked-tables/m-p/56561#M3797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it should go in this direction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'Chainware11g';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[cuf_cuactt]:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;cuacty, cuactk as Key, cuconn as Company_Lane, cudura, tsaaed, tsloai, cuasst, jrasst as Truck#;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT "a.cuacty", "a.cuconn", "a.cudura", "a.tsaaed", "a.tsloai", "a.cuactk", "b.cuasst", "b.jrasst"&lt;/P&gt;&lt;P&gt;FROM "ICJDR"."cuf_cuactt" a left join "ICJDR"."cuf_cuacta" b on "a. cuactk" = "b. cuactk"&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;WHERE "a.tsaaed" &amp;gt;= sysdate - '65';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereby the SQL statement depends on the syntax-rules from your database and you might need some google-searching to adjust it appropriate (surely there are various examples on how to join and alias 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>Mon, 07 May 2018 13:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Clause-in-Load-Editor-for-linked-tables/m-p/56561#M3797</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-05-07T13:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause in Load Editor for linked tables</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Clause-in-Load-Editor-for-linked-tables/m-p/56562#M3798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcus! With some small changes I managed to get the script to work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 08:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Clause-in-Load-Editor-for-linked-tables/m-p/56562#M3798</guid>
      <dc:creator>pascaldijkshoor</dc:creator>
      <dc:date>2018-05-08T08:56:57Z</dc:date>
    </item>
  </channel>
</rss>

