<?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: Difference between SELECT SINGLE and UPTO 1 ROWS? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-single-and-upto-1-rows/m-p/3764490#M905751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select single should be used only when u have full primary key to hit the table.    It directly hits the table for the key and gives u the result.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as we use upto 1 rows, only when there is no full primary key , but u want a row... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;upto 1 rows is costlier than select single, bocz  it puts load on database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when ever there is a complete key we should use select single.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Apr 2008 17:52:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-27T17:52:12Z</dc:date>
    <item>
      <title>Difference between SELECT SINGLE and UPTO 1 ROWS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-single-and-upto-1-rows/m-p/3764489#M905750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Pls. let me know that, the Difference between SELECT SINGLE and UPTO 1 ROWS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) if possible, an example pls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Which is better option among 2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2008 17:46:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-single-and-upto-1-rows/m-p/3764489#M905750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-27T17:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between SELECT SINGLE and UPTO 1 ROWS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-single-and-upto-1-rows/m-p/3764490#M905751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas  ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select single should be used only when u have full primary key to hit the table.    It directly hits the table for the key and gives u the result.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as we use upto 1 rows, only when there is no full primary key , but u want a row... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;upto 1 rows is costlier than select single, bocz  it puts load on database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when ever there is a complete key we should use select single.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2008 17:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-single-and-upto-1-rows/m-p/3764490#M905751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-27T17:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between SELECT SINGLE and UPTO 1 ROWS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-single-and-upto-1-rows/m-p/3764491#M905752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hye srinu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Generally we use select * from ... upto x rows , if we want to use more than one row. upto 1 row is rarely used as upto n number of rows has flexiblity of putting the feched records in internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If your fetching for only one record, it is best programing practise to use select single.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helfpful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Imran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2008 18:05:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-single-and-upto-1-rows/m-p/3764491#M905752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-27T18:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between SELECT SINGLE and UPTO 1 ROWS?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-single-and-upto-1-rows/m-p/3764492#M905753</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;    SELECT SINGLE &amp;lt;LIST OF FIELDS&amp;gt; INTO &amp;lt;WA&amp;gt; FROM &amp;lt;DBT&amp;gt; WHERE &amp;lt;CONDITION&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT UP TO 1 ROWS :&lt;/P&gt;&lt;P&gt;SELECT &amp;lt;LIST OF FIELDS&amp;gt; INTO &amp;lt;WA&amp;gt; FROM &amp;lt;DBT&amp;gt; UP TO 1 ROWS WHERE &amp;lt;CONDITION&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE : IT READS EXACT RECORD &lt;/P&gt;&lt;P&gt;SELECT UP TO 1 ROWS: IT READS THE FIRST RECORD FOUND (MAY NOT BE EXACT) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE : THE WHERE CONDITION SHOULD INCLUDE THE ENTIRE PRIMARY KEY/CHECK TABLE COMBINATION TO IDENTIFY THE RECORD UNIQUELY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT UP TO 1 ROWS : THE WHERE CONDITION CAN HAVE PART OF THE PRIMARY KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE : PREFER THIS TO READ THE EXACT INFORMATION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT UP TO 1 ROWS : PREFER THIS TO VALIDATE INPUT AS WE ARE NOT INTRESTED WITH THE EXACT MATCH. BECAUSE, A RECORD IS VALID IF AT LEAST ONE RECORD FOUND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; WHEN WE DON'T PASS ALL THE PRIMARY KEYS IN THE SELECT SINGLE, IT ACTS AS SELECT UP TO 1 ROWS, BUT DOES NOT THROW AN ERROR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; --&amp;gt; IF THE INPUT IS SELECT-OPTIONS WE CANNOT EXPECT SINGLE RECORD AND WHERE AS WE CAN EXPECT UP TO 1 ROWS. BECAUSE, IT CAN BE ANY RECORD FOR THE INPUT RANGE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THESE ARE THE DIFF BET SELECT SINGLE AND SELECT UP TO 1 ROWS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HOPE THE INFO PROVIDED WAS HELPFUL. IF YOU NEED ANY CLARIFICATION THEN PLEASE LET ME KNOW. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD POINTS, IF THE INFO PROVIDED WAS VERY HELPFUL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAVE A GREAT DAY!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS,&lt;/P&gt;&lt;P&gt;KRISHNA CHAITANYA N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2008 18:15:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-select-single-and-upto-1-rows/m-p/3764492#M905753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-27T18:15:11Z</dc:date>
    </item>
  </channel>
</rss>

