<?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: Is there a better way to right this script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-there-a-better-way-to-right-this-script/m-p/1190298#M883635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DId you try putting the where in SQL clause like below or in the Preceding Load ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD CallType, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactType, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactUnique, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatingUser, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreationDate, DiaryDate, DiaryEntryType,&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LinkingKeyValue,&amp;nbsp; SiteUnique, Subject, UniqueID;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SQL SELECT CallType, ContactType, ContactUnique, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatingUser, CreationDate, DiaryDate, DiaryEntryType, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LinkingKeyValue, SiteUnique, Subject, UniqueID &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM JOURNAL0008&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;WHERE Date(CreationDate,'DD/MM/YYYY') &amp;gt;= Today()-90 AND Date(CreationDate,'DD/MM/YYYY') &amp;lt;= Today()-84;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------- QV Preceding Load.&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;WHERE Date(CreationDate,'DD/MM/YYYY') &amp;gt;= Today()-90 AND Date(CreationDate,'DD/MM/YYYY') &amp;lt;= Today()-84;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD CallType, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactType, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactUnique, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatingUser, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreationDate, DiaryDate, DiaryEntryType,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LinkingKeyValue,&amp;nbsp; SiteUnique, Subject, UniqueID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT CallType, ContactType, ContactUnique, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatingUser, CreationDate, DiaryDate, DiaryEntryType, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LinkingKeyValue, SiteUnique, Subject, UniqueID &lt;/P&gt;&lt;P&gt;FROM JOURNAL0008&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Sep 2016 16:17:07 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2016-09-22T16:17:07Z</dc:date>
    <item>
      <title>Is there a better way to right this script?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-a-better-way-to-right-this-script/m-p/1190295#M883632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following script that pulls data from a database via an ODBC connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this table holds 1.5 million records and when I try to filter the data in the script it becomes very tempremental and sometimes the data never finishes loading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I writing this script in the most efficient way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD CallType, ContactType, ContactUnique, CreatingUser, CreationDate, DiaryDate, DiaryEntryType,&amp;nbsp; LinkingKeyValue,&amp;nbsp; SiteUnique, Subject, UniqueID&lt;/P&gt;&lt;P&gt;WHERE Date(CreationDate,'DD/MM/YYYY') &amp;gt;= Today()-90 AND Date(CreationDate,'DD/MM/YYYY') &amp;lt;= Today()-84 ;&lt;/P&gt;&lt;P&gt;SQL SELECT CallType, ContactType, ContactUnique, CreatingUser, CreationDate, DiaryDate, DiaryEntryType, LinkingKeyValue, SiteUnique, Subject, UniqueID FROM JOURNAL0008;&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/Is-there-a-better-way-to-right-this-script/m-p/1190295#M883632</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a better way to right this script?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-a-better-way-to-right-this-script/m-p/1190296#M883633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try load everything into one table and then use Store Table to create a QVD which is faster to load than loading directly from the source database. Only when you load from QVD you can apply the WHERE clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;D.A. MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 16:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-a-better-way-to-right-this-script/m-p/1190296#M883633</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-09-22T16:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a better way to right this script?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-a-better-way-to-right-this-script/m-p/1190297#M883634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be restrict your data within the SQL itself. This way you will only bring the data you need from SQL into QlikView which would probably save you a lot of time. Exact syntax can be determined by a SQL guy. but I am thinking would be like &lt;STRONG&gt;Where Creation date between ......&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 16:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-a-better-way-to-right-this-script/m-p/1190297#M883634</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-22T16:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a better way to right this script?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-a-better-way-to-right-this-script/m-p/1190298#M883635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DId you try putting the where in SQL clause like below or in the Preceding Load ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD CallType, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactType, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactUnique, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatingUser, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreationDate, DiaryDate, DiaryEntryType,&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LinkingKeyValue,&amp;nbsp; SiteUnique, Subject, UniqueID;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SQL SELECT CallType, ContactType, ContactUnique, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatingUser, CreationDate, DiaryDate, DiaryEntryType, &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LinkingKeyValue, SiteUnique, Subject, UniqueID &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM JOURNAL0008&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;WHERE Date(CreationDate,'DD/MM/YYYY') &amp;gt;= Today()-90 AND Date(CreationDate,'DD/MM/YYYY') &amp;lt;= Today()-84;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------- QV Preceding Load.&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;WHERE Date(CreationDate,'DD/MM/YYYY') &amp;gt;= Today()-90 AND Date(CreationDate,'DD/MM/YYYY') &amp;lt;= Today()-84;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD CallType, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactType, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContactUnique, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatingUser, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreationDate, DiaryDate, DiaryEntryType,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LinkingKeyValue,&amp;nbsp; SiteUnique, Subject, UniqueID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT CallType, ContactType, ContactUnique, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreatingUser, CreationDate, DiaryDate, DiaryEntryType, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LinkingKeyValue, SiteUnique, Subject, UniqueID &lt;/P&gt;&lt;P&gt;FROM JOURNAL0008&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 16:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-a-better-way-to-right-this-script/m-p/1190298#M883635</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-09-22T16:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a better way to right this script?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-a-better-way-to-right-this-script/m-p/1190299#M883636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried a few different options, but in the end moving the where statement to the SQL clause resulted in the shortest amount of time to export the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't try the create the QVD file, but I did utilise the STORE command to create CSV files, so thank you very much for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ODBC connection still isn't 100% stable and does sometimes cause the data to constantly loop, but this happens much less frequently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 14:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-a-better-way-to-right-this-script/m-p/1190299#M883636</guid>
      <dc:creator />
      <dc:date>2016-10-04T14:51:54Z</dc:date>
    </item>
  </channel>
</rss>

