<?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: database table sorting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-sorting/m-p/3324183#M796249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;database sort is done by system by primary key , if you want to sort the database records other than primary key then you need to use for secondary index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Jan 2008 05:07:34 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2008-01-26T05:07:34Z</dc:date>
    <item>
      <title>database table sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-sorting/m-p/3324180#M796246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everyone:&lt;/P&gt;&lt;P&gt;    I want to sort the database talbe record.in native sql statements,what statement I &lt;/P&gt;&lt;P&gt;    can use.can sort statement  work?&lt;/P&gt;&lt;P&gt;    thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2008 04:51:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-sorting/m-p/3324180#M796246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-26T04:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: database table sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-sorting/m-p/3324181#M796247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check SELECT with ORDER BY option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a53358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a53358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: a®s on Jan 26, 2008 12:01 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2008 04:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-sorting/m-p/3324181#M796247</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-01-26T04:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: database table sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-sorting/m-p/3324182#M796248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I only want to sort the database record,not fetch data,no matter how ,I will try your idea,thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2008 05:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-sorting/m-p/3324182#M796248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-26T05:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: database table sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-sorting/m-p/3324183#M796249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;database sort is done by system by primary key , if you want to sort the database records other than primary key then you need to use for secondary index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2008 05:07:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-sorting/m-p/3324183#M796249</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-01-26T05:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: database table sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-sorting/m-p/3324184#M796250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;I have created a secondary index,but the result is the same as the old version,&lt;/P&gt;&lt;P&gt;I think native sql will be helpful,but i donot know what should i do? my background &lt;/P&gt;&lt;P&gt;datasystem is oracle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2008 05:18:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-sorting/m-p/3324184#M796250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-26T05:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: database table sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-sorting/m-p/3324185#M796251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check this thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2008 05:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-sorting/m-p/3324185#M796251</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-01-26T05:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: database table sorting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-sorting/m-p/3324186#M796252</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;why want you do that? By design the order of records in a table doesn't matter.&lt;/P&gt;&lt;P&gt;If you want to make use of the records you have to SELECT them.&lt;/P&gt;&lt;P&gt;When you SELECT them you can have an ORDER BY, voila it's sorted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say you inserted a bunch of rows &lt;STRONG&gt;ORDERED&lt;/STRONG&gt; into the table. Well it's fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do a SELECT * from table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is: will you get the rows ordered? The answer: yes, no, maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to SELECT and ORDER BY to be sure to have the table ordered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I.E. databases are storing rows in a storage-efficient way (ORACLE uses so-called blocks for that).&lt;/P&gt;&lt;P&gt;When you SELECT it visits all blocks that contain the rows and give them back in a efficient (not ordererd ) way back.  The database uses a Cost based optimizer  (CBO) to do that.&lt;/P&gt;&lt;P&gt;The result set can than be ordered by the query plan given by the CBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoe that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2008 08:47:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-table-sorting/m-p/3324186#M796252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-13T08:47:59Z</dc:date>
    </item>
  </channel>
</rss>

