<?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: Using Select Aggregate Statements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630283#M1864384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with Aarif, but you can make use of aggregate functions while writing select query rather than using loops on internal tables to find Max. Value for example as this is more efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the link below for more information on Aggregate statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_702/en/abapselect_aggregate.htm" title="http://help.sap.com/abapdocu_702/en/abapselect_aggregate.htm"&gt;ABAP Keyword Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashvin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Sep 2014 11:31:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-09-16T11:31:02Z</dc:date>
    <item>
      <title>Using Select Aggregate Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630280#M1864381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am getting mixed response regarding the use of aggregate statements in select query. My concerns are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Using aggregate function in select query or processing in internal table is more efficient ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If it is database dependent (as some may argue ), for which databases we have to use aggregate function and for which we should avoid to use it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Is there any relevant study regarding this topic,&amp;nbsp; I mean some statistics with the no of records, and the underlying database used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 13:20:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630280#M1864381</guid>
      <dc:creator>former_member207873</dc:creator>
      <dc:date>2014-09-15T13:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Select Aggregate Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630281#M1864382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any inputs on this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 05:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630281#M1864382</guid>
      <dc:creator>former_member207873</dc:creator>
      <dc:date>2014-09-16T05:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Select Aggregate Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630282#M1864383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It really depends on volume of data and requirement, what i would recommend is to process the internal table instead of using aggregate, most of the time you would be using some kind of loop after select for manipulating data so what you are trying to achieve can easily be achieved in the existing loop and keep select query simple. but again it depends on requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 05:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630282#M1864383</guid>
      <dc:creator>aarif_baig</dc:creator>
      <dc:date>2014-09-16T05:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using Select Aggregate Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630283#M1864384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with Aarif, but you can make use of aggregate functions while writing select query rather than using loops on internal tables to find Max. Value for example as this is more efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the link below for more information on Aggregate statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_702/en/abapselect_aggregate.htm" title="http://help.sap.com/abapdocu_702/en/abapselect_aggregate.htm"&gt;ABAP Keyword Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashvin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 11:31:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630283#M1864384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-16T11:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Select Aggregate Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630284#M1864385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashvin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my question is when and where to use aggregate functions since we can do all the functions performed in an aggregate statement inside internal table loop. If using aggregate functions have perform problem &lt;STRONG&gt;why do they exist&lt;/STRONG&gt; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 11:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630284#M1864385</guid>
      <dc:creator>former_member207873</dc:creator>
      <dc:date>2014-09-16T11:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using Select Aggregate Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630285#M1864386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 11:50:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630285#M1864386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-16T11:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Select Aggregate Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630286#M1864387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know where you found this nonsense, but the rule of thumb is: don't transport (DB -&amp;gt; Application Server) data if you don't need it. Means: if you just need the maximum value or a sum of a database query why you want to read and transfer all the data to the application server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let do the DB do all the work for you, especialy if it's already a HANA installation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 12:31:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630286#M1864387</guid>
      <dc:creator>UweFetzer_se38</dc:creator>
      <dc:date>2014-09-16T12:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using Select Aggregate Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630287#M1864388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fetzer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. But just have a look on to the answers I received, they are not appreciating the use of aggregate statements. Many of my colleagues also belong to the school of thought that using aggregate statements will have performance problems. So what I have to take ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 12:42:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630287#M1864388</guid>
      <dc:creator>former_member207873</dc:creator>
      <dc:date>2014-09-16T12:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using Select Aggregate Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630288#M1864389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And noone has explained &lt;STRONG&gt;WHY&lt;/STRONG&gt; they &lt;STRONG&gt;believe&lt;/STRONG&gt; it is so yet, because it's not possible...&lt;/P&gt;&lt;P&gt;(see also &lt;A href="http://en.wikipedia.org/wiki/Urban_legend" title="http://en.wikipedia.org/wiki/Urban_legend"&gt;Urban legend - Wikipedia, the free encyclopedia&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;So what I have to take&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Just think about arguments pro and contra. I already gave you some (unnecessary transfer of data).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 12:51:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630288#M1864389</guid>
      <dc:creator>UweFetzer_se38</dc:creator>
      <dc:date>2014-09-16T12:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Select Aggregate Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630289#M1864390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fetzer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I just wrote&amp;nbsp; blog on this may be you can share your thoughts &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="113503" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Use of aggregate function in abap" href="https://community.sap.com/" modifiedtitle="true" title="Use of aggregate function in abap"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 01:46:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-select-aggregate-statements/m-p/10630289#M1864390</guid>
      <dc:creator>aarif_baig</dc:creator>
      <dc:date>2014-09-17T01:46:19Z</dc:date>
    </item>
  </channel>
</rss>

