<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/1702833#M308014</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 SINGLE is used when you know what you want to get from the database, that is when you have the full Primary key of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SLECT is used to get more data from the table based on some where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In select single you take the data into a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in select* you take the data into a internal table. using the INTO TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For SELECT SINGLE if you use full primary key in the WHERE clause there is chance that you get the data fastly if the table is buffered with single record buffering. Other wise every query hits the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2006 06:04:52 GMT</pubDate>
    <dc:creator>seshatalpasai_madala</dc:creator>
    <dc:date>2006-11-02T06:04:52Z</dc:date>
    <item>
      <title>select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/1702832#M308013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends, can anyone pls explain to me, when we use select single* and when we use select *...what are the differences in both of them..thanks all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 06:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/1702832#M308013</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2006-11-02T06:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/1702833#M308014</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 SINGLE is used when you know what you want to get from the database, that is when you have the full Primary key of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SLECT is used to get more data from the table based on some where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In select single you take the data into a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in select* you take the data into a internal table. using the INTO TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For SELECT SINGLE if you use full primary key in the WHERE clause there is chance that you get the data fastly if the table is buffered with single record buffering. Other wise every query hits the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 06:04:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/1702833#M308014</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2006-11-02T06:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/1702834#M308015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT SINGLE returns the first matching row for the given condition and it may not be unique, if there are more matching rows for the given condition.&lt;/P&gt;&lt;P&gt;&lt;/P&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;It is a construct designed to read database records with primary key. In the absence of the primary key, it might end up doing a sequential search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at below link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/select_c.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/select_c.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * is generally used to get the values of all fields from the datbase table. Have a lok at below links.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/select.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/select.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://dev.mysql.com/doc/maxdb/en/b8/5ebdd7e252e542a0bde26a583a9980/content.htm" target="test_blank"&gt;http://dev.mysql.com/doc/maxdb/en/b8/5ebdd7e252e542a0bde26a583a9980/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 06:28:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/1702834#M308015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T06:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/1702835#M308016</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 *  is used to get a "single value" for all the fields in the table based on the key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Select * is used to get all the values of the field based on the where condidtion on the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 06:42:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/1702835#M308016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T06:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/1702836#M308017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all and Vibha, urs was the most helpful answer, the  links were also infomative, can u tell me when we use select endselect and select *....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 07:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/1702836#M308017</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2006-11-02T07:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/1702837#M308018</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 Endselect is a loop. You use this to read one row at a time from the database into your workarea. (This is less performance query).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as SELECT INTO TABLE is an array fetch. This is more performance query.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from tab into wa where &amp;lt;cond&amp;gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do some processing here for all the rows that&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;satisfy the where clause.&lt;/P&gt;&lt;P&gt;append wa to itab.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avoid using slect endselect as you can get the data into a table using SELECT * INTO TABLE and then LOOP ENDLOOP over this internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 08:07:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/1702837#M308018</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2006-11-02T08:07:10Z</dc:date>
    </item>
  </channel>
</rss>

