<?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: How to write the query using Index in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862713#M364060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the fields that is specified in the index. after that use that field in the select query. so sap will take that index only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2007 07:35:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-23T07:35:23Z</dc:date>
    <item>
      <title>How to write the query using Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862706#M364053</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 to fetch the records from Database table using Index, how can i write the query using Index. Can any body plz send me the sample code.&lt;/P&gt;&lt;P&gt;Help Me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Balu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 07:18:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862706#M364053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T07:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the query using Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862707#M364054</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;See the below Example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from vbak up to 100 rows&lt;/P&gt;&lt;P&gt;into table t_vbak&lt;/P&gt;&lt;P&gt;where vbeln &amp;gt; v_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort t_vbak by vbeln descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table t_vbak index 1.&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;Ram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 07:23:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862707#M364054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T07:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the query using Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862708#M364055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bala,&lt;/P&gt;&lt;P&gt; You donot need to specify the index in your select statement. Just include the fields on which the index is created in the where clause of the select statement, The optimizer will choose the appropriate index at run-time so as to optimize the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 07:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862708#M364055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T07:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the query using Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862709#M364056</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;I have to give the Index in the select query only when i am retrieving the data from database table, how to write the query , can any body send me th code.&lt;/P&gt;&lt;P&gt;Balu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 07:26:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862709#M364056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T07:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the query using Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862710#M364057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when we creating the table, primary index will creeated automatically. Other than this we can created the secondary indexes. so we writing the select query, the sap itself will select the correct index with respect to the fields u specified in the select query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 07:30:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862710#M364057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T07:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the query using Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862711#M364058</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 am having indexes on the database table, can i use those indexes in the select query, how to write that,&lt;/P&gt;&lt;P&gt;Help me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Balu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 07:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862711#M364058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T07:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the query using Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862712#M364059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just specify the fields on which those indexes are created in the where clause of the select statement. The optimizer will choose the best index at run-time. You will not be able to specify an index EXPLICITLY with the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 07:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862712#M364059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T07:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to write the query using Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862713#M364060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the fields that is specified in the index. after that use that field in the select query. so sap will take that index only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 07:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-the-query-using-index/m-p/1862713#M364060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T07:35:23Z</dc:date>
    </item>
  </channel>
</rss>

