<?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 vs distinct in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-vs-distinct/m-p/2143316#M451780</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;This is the difference between these two&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT SINGLE&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;The result of the selection should be a single entry&amp;lt;/b&amp;gt;. If it is not possible to identify a unique entry, the system uses the first line of the selection. If you use the FOR UPDATE addition, the selected entry is protected against parallel updates from other transactions until the next database commit (see LUW and database lock mechanism). If the database system identifies a deadlock, a runtime error occurs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT DISTINCT&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Duplicate entries in the result set are automatically deleted. There can be multiple entry exist in database for WHERE condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need any other information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Apr 2007 02:37:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-07T02:37:10Z</dc:date>
    <item>
      <title>select single vs distinct</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-vs-distinct/m-p/2143315#M451779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;what is the difference for select single and select distinct?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 02:22:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-vs-distinct/m-p/2143315#M451779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-07T02:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: select single vs distinct</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-vs-distinct/m-p/2143316#M451780</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;This is the difference between these two&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT SINGLE&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;The result of the selection should be a single entry&amp;lt;/b&amp;gt;. If it is not possible to identify a unique entry, the system uses the first line of the selection. If you use the FOR UPDATE addition, the selected entry is protected against parallel updates from other transactions until the next database commit (see LUW and database lock mechanism). If the database system identifies a deadlock, a runtime error occurs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT DISTINCT&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Duplicate entries in the result set are automatically deleted. There can be multiple entry exist in database for WHERE condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need any other information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 02:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-vs-distinct/m-p/2143316#M451780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-07T02:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: select single vs distinct</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-vs-distinct/m-p/2143317#M451781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select single statement is used to retrieve a single record by inputting all the combination of primary key as the search criteria. Here we retrieve a single unique record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select distinct is used to retrieve a set of records satisfying the search criteria without any duplicate records. here you may not need to give the combination of primary key as search criteria.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 02:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-vs-distinct/m-p/2143317#M451781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-07T02:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: select single vs distinct</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-vs-distinct/m-p/2143318#M451782</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;Please reward appropriate point and close the thread. It is a way to say thanks in forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 03:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single-vs-distinct/m-p/2143318#M451782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-07T03:51:23Z</dc:date>
    </item>
  </channel>
</rss>

