<?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: select stmts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022283#M414002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your first question is answered in some other thread.. pls refer that.&lt;/P&gt;&lt;P&gt;when come to 2nd question, for all entries can be used instead of Join and also instead of nested selects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujatha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2007 05:04:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-13T05:04:18Z</dc:date>
    <item>
      <title>select stmts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022281#M414000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;          can anyone tell me the precise difference between &lt;/P&gt;&lt;P&gt;1) SELECT SINGLE * ........... and SELECT UPTO 1 ROW&lt;/P&gt;&lt;P&gt;and when each of them is used??????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)  SELECT ....... FOR ALL ENTRIES.......&lt;/P&gt;&lt;P&gt;when it should be used and what advantages does it have over &lt;/P&gt;&lt;P&gt;nested select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 04:57:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022281#M414000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T04:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: select stmts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022282#M414001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Select sinle is used to select a a particular single record that will match for the where condition field.&lt;/P&gt;&lt;P&gt;Upto 1 rows is used, when you wants atleast one suitable record that will match the where condtion. this is used when you can't pass a key field in where condition.&lt;/P&gt;&lt;P&gt;For all entries is used: to fetch the records from some other tables based on the records that were already fetched into an internal table.&lt;/P&gt;&lt;P&gt;It is advantage over nested selects, as it consumes less db time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 05:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022282#M414001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T05:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: select stmts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022283#M414002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your first question is answered in some other thread.. pls refer that.&lt;/P&gt;&lt;P&gt;when come to 2nd question, for all entries can be used instead of Join and also instead of nested selects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujatha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 05:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022283#M414002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T05:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: select stmts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022284#M414003</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;select single is used only when u r using all the key fields in the where clause,&lt;/P&gt;&lt;P&gt;select single hits database only once , where as select up to 1 rows hits database two times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, when u r using all key fields in where clause it is better to use select single.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 05:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022284#M414003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T05:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: select stmts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022285#M414004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. SELECT SINGLE - This form is to be used when the WHERE clause contains all the KEY fields of the table checked for conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. SELECT UP TO 1 ROWS to be used when the WHERE clause does not contain all the KEY fields of the table checked for conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. FOR ALL ENTRIES should be used when there is atleast one field in common between the tables. This is a replacement of JOINS and NESTED SELECTS. NESTED SELECTS hinder the performance of the report, hence to improve performance use FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 05:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022285#M414004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T05:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: select stmts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022286#M414005</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;Select Single - This form of select is used when the WHERE clause of the SELECT contains all the KEY fields for comparision buring the selection of a single record. This returns the exact record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select UP TO 1 rows - This form of select is used when the WHERE clause of the SELECT does not contain all the KEY fields for comparision buring the selection of a single record. This returns the first record for condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For all entries is used: to fetch the records from some other tables based on the records that were already fetched into an internal table.u don't need to use nested select statements..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 05:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022286#M414005</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-03-13T05:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: select stmts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022287#M414006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select single *&lt;/P&gt;&lt;P&gt;   from spfli&lt;/P&gt;&lt;P&gt;    into corresponding fields&lt;/P&gt;&lt;P&gt;       of fs_spfli.&lt;/P&gt;&lt;P&gt; this statement should be used when we want to select some data into work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt; up to 1 rows&lt;/P&gt;&lt;P&gt;  from spfli&lt;/P&gt;&lt;P&gt;  into corresponding fields&lt;/P&gt;&lt;P&gt;    of table t_spfli.&lt;/P&gt;&lt;P&gt; this statement should be used when we want to select some data into table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... FOR ALL ENTRIES IN itab WHERE ... col operator itab-comp ... &lt;/P&gt;&lt;P&gt;this helps us this way,&lt;/P&gt;&lt;P&gt;If the addition FOR ALL ENTRIES is specified before the language element WHERE, then the components comp of the internal table itab can be used as operands when comparing with relational operators.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 05:07:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022287#M414006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T05:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: select stmts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022288#M414007</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;in performance wise both select single and select upto 1 row are same but select single is advisable when all key fields are mentioned in where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For all entries is used to avoid nested select statements. If we want to check some conditions on some records(randomly)  that are presented in internel table then for all entries is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coditions to use for all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. the internal table is not initial.&lt;/P&gt;&lt;P&gt;2. in where condition we have to mention the field that is present in internal table.&lt;/P&gt;&lt;P&gt;3. to eleminate duplicate entries mention all primary key fields in where condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2007 05:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-stmts/m-p/2022288#M414007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-13T05:13:38Z</dc:date>
    </item>
  </channel>
</rss>

