<?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: Regarding Select Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3437497#M825496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Both the statements are same in functionality point of view but differs only in Performance point of view. &lt;/P&gt;&lt;P&gt;Select single have good performance than select upto 1 row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2008 14:51:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-19T14:51:16Z</dc:date>
    <item>
      <title>Regarding Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3437491#M825490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the difference between SELECT SINGLE* and SELECT...........UPTO ONE ROW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 07:05:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3437491#M825490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T07:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3437492#M825491</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 upto----this will select only  records based on our requirement.&lt;/P&gt;&lt;P&gt;i.e if we give select kunnr nmae1 from kna1 upto one row.&lt;/P&gt;&lt;P&gt;this will give only one row from that table.&lt;/P&gt;&lt;P&gt;select single -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;this will select single record from the table depending on where condition..&lt;/P&gt;&lt;P&gt;u can check in debugging ..the way data is fetched is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jyothsna M on Feb 19, 2008 8:12 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 07:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3437492#M825491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T07:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3437493#M825492</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 only difference i believe is in syntax. Apart from that there is no difference. Both will get the first db reocord that matches the where condition. besides UPTO Can be used to fetch multiple rows.&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;Thanks in advance,&lt;/P&gt;&lt;P&gt;Harikrishna Indugu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 07:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3437493#M825492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T07:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3437494#M825493</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 read db records with primary key.&lt;/P&gt;&lt;P&gt;select upto one row doesnt read for a primary key, instead it will try to find the most suitable index.&lt;/P&gt;&lt;P&gt;hence select upto one row is faster than select single if primary keys are not known.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vasudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 07:12:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3437494#M825493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T07:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3437495#M825494</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 basic rule we follow in production is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use SELECT SINGLE if you only need one result row or if you are validating whether the record exists and have the whole key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you read data using SELECT, it is worth using multiple operations (on an internal table) if you want to process the data more than once, otherwise, a simple SELECT loop is more efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avoid selecting all fields (i.e. SELECT *) unless absolutely necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Watch the use of DISTINCT (it can perform badly and will bypass the buffer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are doing a read to validate whether something is there (expecting only one record), use the UP TO 1 ROWS command after the INTO clause to avoid reading data you don&amp;#146;t need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 19, 2008 2:11 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 07:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3437495#M825494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T07:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3437496#M825495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use  Select Single when u r sure that your where clause will get only one record. This will be generally used for selection screen validations.(Selects on check tables for checking valid entry or not)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select upto one rows will also get one record but the difference is it will first select all the records which satisfies the where clause then it will return the first record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 14:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3437496#M825495</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-02-19T14:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3437497#M825496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Both the statements are same in functionality point of view but differs only in Performance point of view. &lt;/P&gt;&lt;P&gt;Select single have good performance than select upto 1 row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 14:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/3437497#M825496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T14:51:16Z</dc:date>
    </item>
  </channel>
</rss>

