<?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: Any diffarence in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-diffarence/m-p/2299983#M502553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is no diffrence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * - it gets single record from Data base ( Primary key is mandatory)&lt;/P&gt;&lt;P&gt;select up to 1 row - it gets single record from database( not mandatory)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2007 03:29:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-22T03:29:41Z</dc:date>
    <item>
      <title>Any diffarence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-diffarence/m-p/2299981#M502551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             Is there any diffarence in the result for the following two select querys?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE atbez INTO it_archive-atbez&lt;/P&gt;&lt;P&gt;                         FROM  cabnt&lt;/P&gt;&lt;P&gt;          WHERE  atinn  = h_atinn&lt;/P&gt;&lt;P&gt;             AND    spras  = sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT  atbez INTO  it_archive-atbez&lt;/P&gt;&lt;P&gt;                          UP TO 1 ROWS&lt;/P&gt;&lt;P&gt;                           FROM  cabnt&lt;/P&gt;&lt;P&gt;              WHERE  atinn  = h_atinn&lt;/P&gt;&lt;P&gt;              AND    spras  = sy-langu.&lt;/P&gt;&lt;P&gt;      ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vaddi Bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 03:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-diffarence/m-p/2299981#M502551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T03:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Any diffarence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-diffarence/m-p/2299982#M502552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 'SELECT SINGLE' statement selects the first row in the database that it finds that fulfils the 'WHERE' clause If this results in multiple records then only the first one will be returned and therefore may not be unique. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'SELECT .... UP TO 1 ROWS' statement is subtly different. The database selects all of the relevant records that are defined by the WHERE clause or lack of, applies any aggregate, ordering or grouping functions to them and then returns the first record of the resultant result set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 03:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-diffarence/m-p/2299982#M502552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T03:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Any diffarence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-diffarence/m-p/2299983#M502553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is no diffrence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * - it gets single record from Data base ( Primary key is mandatory)&lt;/P&gt;&lt;P&gt;select up to 1 row - it gets single record from database( not mandatory)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 03:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-diffarence/m-p/2299983#M502553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T03:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Any diffarence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-diffarence/m-p/2299984#M502554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;ID    Name    &lt;/P&gt;&lt;P&gt;01   AA&lt;/P&gt;&lt;P&gt;02   AA&lt;/P&gt;&lt;P&gt;03   BB&lt;/P&gt;&lt;P&gt;04   AA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Single,... where name ='AA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will display the first record since where condition matched.. it will don't search other records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Displays 01   AA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now,UPTO 1 row&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it fetches all 3 records and displays 1st record&lt;/P&gt;&lt;P&gt;It fetches....&lt;/P&gt;&lt;P&gt;01   AA&lt;/P&gt;&lt;P&gt;02   AA&lt;/P&gt;&lt;P&gt;04   AA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Displays 01   AA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now think of performance wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case select single is better in performance wise...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you are clear with concept... no difference both fetch the first record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points to all useful answers..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 03:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-diffarence/m-p/2299984#M502554</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2007-05-22T03:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Any diffarence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-diffarence/m-p/2299985#M502555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Output of the both the select queries are same whereas performance wise select single is better .&lt;/P&gt;&lt;P&gt;select single gets the first matching entires in the database table &lt;/P&gt;&lt;P&gt;whereas select upto one rows selects all the entires and return the first entry as result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 03:34:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-diffarence/m-p/2299985#M502555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T03:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Any diffarence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/any-diffarence/m-p/2299986#M502556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharat, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you have the whole primary key of the table then use select single.&lt;/P&gt;&lt;P&gt;If you don't have the full key then use select UP TO 1 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using these two select in above scenario will make query much faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 03:34:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/any-diffarence/m-p/2299986#M502556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T03:34:51Z</dc:date>
    </item>
  </channel>
</rss>

