<?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: explained me this select statement... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/explained-me-this-select-statement/m-p/1059128#M91331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Ballante,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... UP TO n ROWS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This addition restricts the number of rows in the result set. A data object of the Type i is expected for n. A positive number in n indicates the maximum number of rows in the result set. If n contains the value 0, all selected rows are passed to the result set. If n contains a negative number, an exception that cannot be handled is raised. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the addition ORDER BY is also specified, the rows of the hit list are sorted on the database server and only the number of sorted rows specified in n are passed to the result set. If the addition ORDER BY is not specified, n is filled with any number of rows in the result set that meet the WHERE condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manikandan R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2005 09:51:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-22T09:51:22Z</dc:date>
    <item>
      <title>explained me this select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explained-me-this-select-statement/m-p/1059122#M91325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;What do this select statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT * UP TO 1 ROWS FROM LIPS WHERE ZZOBJNR = VA_L_OBJNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never seen   "select * up to 1 rows".&lt;/P&gt;&lt;P&gt;Thanks all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 09:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explained-me-this-select-statement/m-p/1059122#M91325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T09:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: explained me this select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explained-me-this-select-statement/m-p/1059123#M91326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will fetch only the first record from table even if more than one records match your selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The action is similar to SELECT SINGLE *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sudhir Bhate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 09:43:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explained-me-this-select-statement/m-p/1059123#M91326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T09:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: explained me this select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explained-me-this-select-statement/m-p/1059124#M91327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabrizio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will SELECT only one row from the database even if the where clause is satisfied by multiple rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would rather suggest you to use SELECT single, which gives a better performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please reward the posts that help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 09:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explained-me-this-select-statement/m-p/1059124#M91327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T09:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: explained me this select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explained-me-this-select-statement/m-p/1059125#M91328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what ever the record that satisifies the where condition it will fetch, and even if you have more records with that condition it will fetch the first record that satisfies the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 09:46:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explained-me-this-select-statement/m-p/1059125#M91328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T09:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: explained me this select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explained-me-this-select-statement/m-p/1059126#M91329</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;It's way to say to system to get out the first record is found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also write this statament in this way: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM LIPS WHERE ZZOBJNR = VA_L_OBJNR.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM LIPS WHERE ZZOBJNR = VA_L_OBJNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this last statament is not really correct, because ZZOBJNR is not the key of LIPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 09:47:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explained-me-this-select-statement/m-p/1059126#M91329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T09:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: explained me this select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explained-me-this-select-statement/m-p/1059127#M91330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, Thanks all....A lot of points for all...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 09:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explained-me-this-select-statement/m-p/1059127#M91330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T09:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: explained me this select statement...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/explained-me-this-select-statement/m-p/1059128#M91331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Ballante,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... UP TO n ROWS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This addition restricts the number of rows in the result set. A data object of the Type i is expected for n. A positive number in n indicates the maximum number of rows in the result set. If n contains the value 0, all selected rows are passed to the result set. If n contains a negative number, an exception that cannot be handled is raised. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the addition ORDER BY is also specified, the rows of the hit list are sorted on the database server and only the number of sorted rows specified in n are passed to the result set. If the addition ORDER BY is not specified, n is filled with any number of rows in the result set that meet the WHERE condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manikandan R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2005 09:51:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/explained-me-this-select-statement/m-p/1059128#M91331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-22T09:51:22Z</dc:date>
    </item>
  </channel>
</rss>

