<?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: Help On Table Index in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-table-index/m-p/1336869#M170924</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 a table has an index for field FIELD you'll use that index selecting by only that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM &amp;lt;TABLE&amp;gt; WHERE FIELD = ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this situation my select's using the index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jun 2006 08:09:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-01T08:09:24Z</dc:date>
    <item>
      <title>Help On Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-table-index/m-p/1336867#M170922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends, &lt;/P&gt;&lt;P&gt; In my programe I am selecting MFRPN from Mara Table, in data dictionary the table has the index for the field MFRPN, should i mention the index name in my select statement in Prog ? if yes how to do this ? Any Sample code will help me a lot. &lt;/P&gt;&lt;P&gt; And in Data Dictionary the index is defined as Non Unique, and index not maintained in Oracle database, is this ok or should i change it as Unique &amp;amp; Maintain Index in Oracle database ?&lt;/P&gt;&lt;P&gt;This is very urgent, so kindly help me.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 08:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-table-index/m-p/1336867#M170922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T08:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help On Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-table-index/m-p/1336868#M170923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;You can use %hints for this..&lt;/P&gt;&lt;P&gt;Consider following example..&lt;/P&gt;&lt;P&gt;SELECT * FROM RESB&lt;/P&gt;&lt;P&gt;WHERE MATNR = '200-100' AND WERKS = '1100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two indexes are defined on RESB: the primary index with the ID '0' via the fields (MANDT,RSNUM,RSPOS,RSART) and a secondary index with the ID 'M' via (MANDT,MATNR,WERKS,XLOEK,KZEAR,BDTER). This M index can be used for the above statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A more direct way to access a table via an index is by using a hint and by letting the optimizer decide which index should be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM RESB WHERE MATNR = '200-100' AND WERKS = '1100'%_HINTS ORACLE 'INDEX("&amp;amp;TABLE&amp;amp;")'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After all, the M index should be predefined explicitly. Since the precise naming of the M index is not known, all alternatives are simply listed. The Oracle optimizer ignores the index names which do not exist. In this case, the &amp;amp;TABLE&amp;amp; substitution cannot be used for the index names since these names do not depend on a table alias in the FROM condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM RESB WHERE MATNR = '200-100' AND WERKS = '1100'%_HINTS ORACLE 'INDEX("&amp;amp;TABLE&amp;amp;" "RESB~M" "RESB^M")'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanveer.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please mark helpful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 08:09:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-table-index/m-p/1336868#M170923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T08:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help On Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-table-index/m-p/1336869#M170924</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 a table has an index for field FIELD you'll use that index selecting by only that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM &amp;lt;TABLE&amp;gt; WHERE FIELD = ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this situation my select's using the index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 08:09:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-table-index/m-p/1336869#M170924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T08:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help On Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-table-index/m-p/1336870#M170925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do an SQL trace on the program. This will tell you if your program is doing a read using primary index or alternative index which u have indicated. If it doing the read using ur index then u don't have to do anything but if not then..&lt;/P&gt;&lt;P&gt; u can use the keyword %HINT to force the database into using a perticular index. Please refer to OSS notes 129385.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 08:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-table-index/m-p/1336870#M170925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T08:21:21Z</dc:date>
    </item>
  </channel>
</rss>

