<?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 single *  or SELECT * UP TO 1 ROWS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-or-select-up-to-1-rows/m-p/5442089#M1248044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please search before asking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2009 13:27:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-24T13:27:44Z</dc:date>
    <item>
      <title>SELECT single *  or SELECT * UP TO 1 ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-or-select-up-to-1-rows/m-p/5442085#M1248040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one tell me using a query with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT single *&lt;/P&gt;&lt;P&gt;into workarea&lt;/P&gt;&lt;P&gt;from DBtable&lt;/P&gt;&lt;P&gt;where &amp;lt; all fields in the index &amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is better or &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;into warkarea&lt;/P&gt;&lt;P&gt;from DBtable&lt;/P&gt;&lt;P&gt;where &amp;lt; all fields in the index &amp;gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 12:15:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-or-select-up-to-1-rows/m-p/5442085#M1248040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T12:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT single *  or SELECT * UP TO 1 ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-or-select-up-to-1-rows/m-p/5442086#M1248041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;performancewise they are identical&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use them for better understanding of the coding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE, if all keys of an unique index are specified with equal conditions,&lt;/P&gt;&lt;P&gt;i.e. 1 record expected one record read. Works still, if table is buffered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT UP TO 1 ROWS, special case of UP TO n ROWS, use it when more &lt;/P&gt;&lt;P&gt;rows could, but you are satisfied with one!&lt;/P&gt;&lt;P&gt;Does not work with buffers, but WHERE-condition does also not work with&lt;/P&gt;&lt;P&gt;a single record buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 12:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-or-select-up-to-1-rows/m-p/5442086#M1248041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T12:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT single *  or SELECT * UP TO 1 ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-or-select-up-to-1-rows/m-p/5442087#M1248042</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;Refer to this link..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4902331"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="154877"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 12:25:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-or-select-up-to-1-rows/m-p/5442087#M1248042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T12:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT single *  or SELECT * UP TO 1 ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-or-select-up-to-1-rows/m-p/5442088#M1248043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Performence wise both statements are not same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Major difference between Select Single and Select UPTO 1 rows is The Usage Of Buffer for each. &lt;/P&gt;&lt;P&gt;Select Single will search for all the satisfied data and bring all that data into Buffer and later it will give to that data to the program. &lt;/P&gt;&lt;P&gt;Select UPTO 1 Rows will end the search after getting the 1st satisfied record and gives that record to the program. &lt;/P&gt;&lt;P&gt;Thus Select Single will take much processing time when compare with Select UPTO 1 rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So performrnce wise it is always better to use select up to 1 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from mara into table itab&lt;/P&gt;&lt;P&gt;where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara up to 1 rows into table itab&lt;/P&gt;&lt;P&gt;where condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 12:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-or-select-up-to-1-rows/m-p/5442088#M1248043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T12:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT single *  or SELECT * UP TO 1 ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-or-select-up-to-1-rows/m-p/5442089#M1248044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please search before asking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 13:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-or-select-up-to-1-rows/m-p/5442089#M1248044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T13:27:44Z</dc:date>
    </item>
  </channel>
</rss>

