<?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: Order by clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Order-by-clause/m-p/1059787#M935493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;His problem probably is that ORDER BY can &lt;EM&gt;only&lt;/EM&gt; be used on RESIDENT tables, not on external file sources (LOAD FROM).&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I guess you mean "only not from files", because I am pretty sure you can also use it with various databases. I probably would not recommend it, but you can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway,&lt;/P&gt;&lt;P&gt;If the OP wants to sort his data in some sort of a way, wouldn't this be a solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;Load from tableA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableB:&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;Load * from TableA&lt;/P&gt;&lt;P&gt;order by someField;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop TableA;&lt;/P&gt;&lt;P&gt;rename table TableB to TableA;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2016 19:04:13 GMT</pubDate>
    <dc:creator>oknotsen</dc:creator>
    <dc:date>2016-03-01T19:04:13Z</dc:date>
    <item>
      <title>Order by clause</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-clause/m-p/1059782#M935487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Why can't&amp;nbsp; we use the Order by clause with load statment. I know that we can use the order by clause with resident load.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 13:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-clause/m-p/1059782#M935487</guid>
      <dc:creator>vireshkolagimat</dc:creator>
      <dc:date>2016-03-01T13:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Order by clause</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-clause/m-p/1059783#M935488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You actually &lt;STRONG&gt;can&lt;/STRONG&gt; use the "order by" clause when loading from various sources, including resident.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your exact problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 13:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-clause/m-p/1059783#M935488</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-03-01T13:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Order by clause</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-clause/m-p/1059784#M935489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can. If you have any problems you can use preceding load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * ORDER BY ....;&lt;/P&gt;&lt;P&gt;LOAD * ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 14:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-clause/m-p/1059784#M935489</guid>
      <dc:creator>hubertdudek</dc:creator>
      <dc:date>2016-03-01T14:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Order by clause</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-clause/m-p/1059785#M935491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;His problem probably is that ORDER BY can &lt;EM&gt;only&lt;/EM&gt; be used on RESIDENT tables, not on external file sources (LOAD FROM).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Viresh, that's how QlikView works. Nothing to be done about that.&lt;/P&gt;&lt;P&gt;You can however use the ORDER BY clause in SQL statements any way you like. That may bring some solace, if you use an RDBMS as external data source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 15:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-clause/m-p/1059785#M935491</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-03-01T15:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Order by clause</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-clause/m-p/1059786#M935492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not really sure, but that may well turn your Preceding Load into a Resident Load of a hidden table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-clause/m-p/1059786#M935492</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-03-01T17:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Order by clause</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-clause/m-p/1059787#M935493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;His problem probably is that ORDER BY can &lt;EM&gt;only&lt;/EM&gt; be used on RESIDENT tables, not on external file sources (LOAD FROM).&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I guess you mean "only not from files", because I am pretty sure you can also use it with various databases. I probably would not recommend it, but you can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway,&lt;/P&gt;&lt;P&gt;If the OP wants to sort his data in some sort of a way, wouldn't this be a solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;Load from tableA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableB:&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;Load * from TableA&lt;/P&gt;&lt;P&gt;order by someField;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop TableA;&lt;/P&gt;&lt;P&gt;rename table TableB to TableA;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 19:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-clause/m-p/1059787#M935493</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-03-01T19:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Order by clause</title>
      <link>https://community.qlik.com/t5/QlikView/Order-by-clause/m-p/1059788#M935495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course you're right (see the second statement in my post). But a SELECT is an entirely different beast than a (QlikView) LOAD statement, and as far as I know LOAD doesn't allow for reading RDBMS tables (yet).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A while ago and in another discussion, I posted this snapshot from the QV desktop help. The text is still badly formatted (for a number of years now) so it doesn't do the ORDER BY clause any justice. But it still applies. See the first and fourth sentences:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Help on Order By thread201352.jpg" class="jive-image image-1" src="/legacyfs/online/116500_Help on Order By thread201352.jpg" style="height: 152px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 20:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-by-clause/m-p/1059788#M935495</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-03-01T20:24:17Z</dc:date>
    </item>
  </channel>
</rss>

