<?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 querry for maximum value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-for-maximum-value/m-p/3773565#M908022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using aggregate function MAX with SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX Returns the greatest value in the column determined by the database field f for the selected lines. Specifying DISTINCT does not change the result. NULL values are ignored unless all values in a column are NULL values. In this case, the result is NULL . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at below link:&lt;/P&gt;&lt;P&gt;[Select Clause|http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/select_c.htm]&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>Fri, 02 May 2008 13:03:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-02T13:03:40Z</dc:date>
    <item>
      <title>Select querry for maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-for-maximum-value/m-p/3773564#M908021</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;I want to select fields A B C D from a database table TAB using some selection criteria from selection screen, but the greatest value of A has to be selected for all unique entries of B C and D. Please suggest an appropriate select querry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I cannot use SELECT and then DELETE ADJACENT DUPLICATES as it will effect performance in some cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 12:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-for-maximum-value/m-p/3773564#M908021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T12:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select querry for maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-for-maximum-value/m-p/3773565#M908022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using aggregate function MAX with SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX Returns the greatest value in the column determined by the database field f for the selected lines. Specifying DISTINCT does not change the result. NULL values are ignored unless all values in a column are NULL values. In this case, the result is NULL . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at below link:&lt;/P&gt;&lt;P&gt;[Select Clause|http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/select_c.htm]&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>Fri, 02 May 2008 13:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-for-maximum-value/m-p/3773565#M908022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T13:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Select querry for maximum value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-for-maximum-value/m-p/3773566#M908023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Charles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   do this way&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 select max( a ) from &amp;lt;table&amp;gt; into table itab where &amp;lt;conditons&amp;gt; ..
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 13:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-for-maximum-value/m-p/3773566#M908023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T13:04:37Z</dc:date>
    </item>
  </channel>
</rss>

