<?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 statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430695#M543382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hemaltha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selecr * will fetch all the Records from the table for the given &amp;lt;b&amp;gt;where condition&amp;lt;/b&amp;gt;,&lt;/P&gt;&lt;P&gt;Select Single will fetch only one Record from the table for the given &amp;lt;b&amp;gt;where condition,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2007 06:30:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-20T06:30:05Z</dc:date>
    <item>
      <title>select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430693#M543380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can any one please tell me the exact difference between select * and select single&lt;/P&gt;&lt;P&gt;what difference will appear in the output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430693#M543380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430694#M543381</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 * will select all the records which satisfy the where condition clause,&lt;/P&gt;&lt;P&gt;But in Select Single it will select only the single first entry in the DB table which satisfy the where condition clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ranjit Thakur.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please Mark The Helpful Answer.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430694#M543381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430695#M543382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hemaltha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selecr * will fetch all the Records from the table for the given &amp;lt;b&amp;gt;where condition&amp;lt;/b&amp;gt;,&lt;/P&gt;&lt;P&gt;Select Single will fetch only one Record from the table for the given &amp;lt;b&amp;gt;where condition,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430695#M543382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430696#M543383</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;&amp;lt;b&amp;gt;select *&amp;lt;/b&amp;gt; will fetch all the records according to the where condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;select single&amp;lt;/b&amp;gt; will fetch only the single record&lt;/P&gt;&lt;P&gt;according to the where condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ashu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430696#M543383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430697#M543384</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 an option we use only when we know the full key of the table, not when we know that there will be only one record. So if you are selecting from MARA and your WHERE condition has MATNR in it, then you should use SELECT SINGLE. But if your WHERE condition has BISMT(old material number) and even if you know that it will result in one record only, you should not use SELECT SINGLE. It is not that it will give you an error but if you do an extended check, there it will show it as a warning saying that you didn't use the full key and that there is a possibility that there could be more than one record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select *   -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;     selects all fields from the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430697#M543384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430698#M543385</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 * will fetch all the records from database table .( data for all rows and all coumns for a particular row)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single will fetch only one row ( mean to say all coums for that particular row only)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:34:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430698#M543385</guid>
      <dc:creator>S0025444845</dc:creator>
      <dc:date>2007-06-20T06:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430699#M543386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT *&amp;lt;/b&amp;gt; for selecting all fields of table rows which meets the condition in WHERE clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT vblen&amp;lt;/b&amp;gt; for selecting only VBELN field of table rows which meets the condition in WHERE clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT SINGLE&amp;lt;/b&amp;gt;  for selecting only 1 row even if the more rows are available for condition in WHERE clause. Mostly we should specify all primary key fields in WHERE for SELECT SINGLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if its useful&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430699#M543386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430700#M543387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi hemalatha,&lt;/P&gt;&lt;P&gt;the difference is &lt;/P&gt;&lt;P&gt; if u write &lt;/P&gt;&lt;P&gt;select * from mara where ernam='rudisill'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will return all rows with ernam with the value rudisill.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u write &lt;/P&gt;&lt;P&gt;select single * from mara where ernam='rudisill'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will return only one row ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;based on your requirement u can use the select statement ....in some case u may want one one row to be returned in that case u can use (select single statement)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430700#M543387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430701#M543388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Hemal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/difference-between-select-single-and-select-upto-one-rows.htm" target="test_blank"&gt;http://www.sap-img.com/abap/difference-between-select-single-and-select-upto-one-rows.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if Helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 06:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement/m-p/2430701#M543388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T06:38:39Z</dc:date>
    </item>
  </channel>
</rss>

