<?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 Where does the STORE statement go in the script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-does-the-STORE-statement-go-in-the-script/m-p/375974#M140118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an inherited long SQL statement that pulls from many files. I would like to store the results in a QVD file. Since there is no documentation on the SQLstatement, and there is no "INTO" in the Select statement, I looked at QV's table viewer, and saw the results were in a single table, "Sub_Package". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my question is: where do I put the following STORE statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE Sub_Package INTO SPData.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I put it before the SQL statement, I get an error "No such table Sub_Package", and when I put it after the SQL statement's final clause (GROUP BY fields ORDER BY fields), I get a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to put some terminator, eg. (;) at the end of the ORDER BY statement? Or is there some other syntax I'm missing here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2012 13:44:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-31T13:44:46Z</dc:date>
    <item>
      <title>Where does the STORE statement go in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-does-the-STORE-statement-go-in-the-script/m-p/375974#M140118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an inherited long SQL statement that pulls from many files. I would like to store the results in a QVD file. Since there is no documentation on the SQLstatement, and there is no "INTO" in the Select statement, I looked at QV's table viewer, and saw the results were in a single table, "Sub_Package". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my question is: where do I put the following STORE statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE Sub_Package INTO SPData.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I put it before the SQL statement, I get an error "No such table Sub_Package", and when I put it after the SQL statement's final clause (GROUP BY fields ORDER BY fields), I get a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to put some terminator, eg. (;) at the end of the ORDER BY statement? Or is there some other syntax I'm missing here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 13:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-does-the-STORE-statement-go-in-the-script/m-p/375974#M140118</guid>
      <dc:creator />
      <dc:date>2012-07-31T13:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the STORE statement go in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-does-the-STORE-statement-go-in-the-script/m-p/375975#M140119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; After your load statement finished.. Use store like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store Sub_Package into SPData.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; T1:&lt;/P&gt;&lt;P&gt;SELECT NO,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "FirstName",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "LastName"&lt;BR /&gt;FROM TableName WHERE DELFLAG = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE T1 INTO QVD\Tablename.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 13:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-does-the-STORE-statement-go-in-the-script/m-p/375975#M140119</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-07-31T13:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the STORE statement go in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/Where-does-the-STORE-statement-go-in-the-script/m-p/375976#M140120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, in the meantime I tried inserting a ";" after the GROUP BY in the Select, and it worked fine. Thanks for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 13:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-does-the-STORE-statement-go-in-the-script/m-p/375976#M140120</guid>
      <dc:creator />
      <dc:date>2012-07-31T13:53:50Z</dc:date>
    </item>
  </channel>
</rss>

