<?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 with no Key Fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-no-key-fields/m-p/6375099#M1402523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   I have a  SQL statement with where condition. But in where condition, there is not a single KEY field is being used... &lt;/P&gt;&lt;P&gt;  I am trying to add Dummy KEY fields( with no value  Ex. select-option field for key field), to improve the performance... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Could you please suggest me, whether it will improve performance on not...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manglesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please use a meaningful subject for your thread. This the Performance and Tuning Forum, so all questions are about "Performance Issues"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Nov 19, 2009 11:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Nov 2009 16:30:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-19T16:30:39Z</dc:date>
    <item>
      <title>SELECT with no Key Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-no-key-fields/m-p/6375099#M1402523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   I have a  SQL statement with where condition. But in where condition, there is not a single KEY field is being used... &lt;/P&gt;&lt;P&gt;  I am trying to add Dummy KEY fields( with no value  Ex. select-option field for key field), to improve the performance... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Could you please suggest me, whether it will improve performance on not...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manglesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please use a meaningful subject for your thread. This the Performance and Tuning Forum, so all questions are about "Performance Issues"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Nov 19, 2009 11:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 16:30:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-no-key-fields/m-p/6375099#M1402523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-19T16:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT with no Key Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-no-key-fields/m-p/6375100#M1402524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably not, but it's pretty hard to say without seeing the SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 16:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-no-key-fields/m-p/6375100#M1402524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-19T16:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT with no Key Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-no-key-fields/m-p/6375101#M1402525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manglesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will help you very much to learn some basic SQL by reading a book. You should seriously consider that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Putting key fields in the WHERE clause will help only if you are searching by those fields. If you are just putting FIELD IN S_FIELD and not specifying anything in S_FIELD will not help. In fact, open SQL doesn't even pass that clause to DB engine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What will really help you is to create an index on the table using the field(s) that are in your WHERE clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, this all basic SQL. Nothing to do with ABAP or SAP. If you don't want to buy a book, there is tons of information on the Internet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 19:47:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-no-key-fields/m-p/6375101#M1402525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-19T19:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT with no Key Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-no-key-fields/m-p/6375102#M1402526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Again, this all basic SQL. Nothing to do with ABAP or SAP. &lt;/P&gt;&lt;P&gt;this is not really true, the select options are Open SQL constructs (i.e. the SQL for ABAP and SAP), not used select-options are not forwarded by the database interface (SAP application server) to the database. With the effect you are right, they can not have any effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the recommendation is also correct, learn more about SQL. Key fields are usually the fields of the primary key, any field can becomes a field of secondary index.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 08:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-no-key-fields/m-p/6375102#M1402526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T08:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT with no Key Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-no-key-fields/m-p/6375103#M1402527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... any field can becomes a field of secondary index.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Are you sure? &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 14:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-no-key-fields/m-p/6375103#M1402527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T14:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT with no Key Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-no-key-fields/m-p/6375104#M1402528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is in similar lines..so posting it here&lt;/P&gt;&lt;P&gt;suppose a table has 11 key fields, and we extract data from it using select statement and in where condition I use 3 fields all of which are key fields.&lt;BR /&gt;now if I somehow manage to incorporate all the key fields in the where condition will it give any performance benefit?&lt;BR /&gt;(Note: Number of records selected has to be same in both pre and post condition)&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sumanto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 11:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-with-no-key-fields/m-p/6375104#M1402528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-28T11:37:33Z</dc:date>
    </item>
  </channel>
</rss>

