<?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 Select Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/5941856#M1334714</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 a table with a key field and a non-key field. This table has around 6 million records.&lt;/P&gt;&lt;P&gt;My ABAP statement is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select single non-key-field from table where key-field = variable.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you'll please give me some other tips to increase efficiency of this select statement further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;CD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jul 2009 19:24:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-14T19:24:12Z</dc:date>
    <item>
      <title>Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/5941856#M1334714</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 a table with a key field and a non-key field. This table has around 6 million records.&lt;/P&gt;&lt;P&gt;My ABAP statement is:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select single non-key-field from table where key-field = variable.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you'll please give me some other tips to increase efficiency of this select statement further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;CD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 19:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/5941856#M1334714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-14T19:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/5941857#M1334715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since you have a single key field, and as you are using a select single, the select is already using the index and selecting only the one record that matchs. I don't think it can bet tuned further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 19:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/5941857#M1334715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-14T19:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/5941858#M1334716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have issues with performance on this SELECT (it's well written), check table statistics at database level&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 19:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/5941858#M1334716</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-07-14T19:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/5941859#M1334717</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;the key-field in your where condition is the only index field or it is IN table index?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frisoni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 19:38:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/5941859#M1334717</guid>
      <dc:creator>guilherme_frisoni</dc:creator>
      <dc:date>2009-07-14T19:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/5941860#M1334718</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;   If you want to increase the performance further , then create a new index with both key field and non-key field so that a new key field come into existence. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Next use the same select single with that new key field...... Certainly it will improve the performance of select single as you increase the number of fields in the key... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 19:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/5941860#M1334718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-14T19:39:37Z</dc:date>
    </item>
  </channel>
</rss>

