<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Aggregation Query</title><link>https://community.appian.com/discussions/f/data/31159/aggregation-query</link><description>Hi, 
 Wanted to understand on how Appian parses an Expression Rule that uses a!queryAggregation and a!queryAggregationColumn against a Table/View? Does it convert and send a query as-is with GROUP By to the database SQL engine or does it get the data</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Aggregation Query</title><link>https://community.appian.com/thread/124365?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 22:53:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a3f3d52a-ef8c-4e26-8005-6c05761729b5</guid><dc:creator>Jones Prakash Selvaraj</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/praveend0002"&gt;ougdp2003&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;I have recently come across a video on YouTube similar to this. Sharing it &lt;a href="https://youtu.be/A534YGDXtB0?feature=shared"&gt;here&lt;/a&gt; might help - CTTO&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Aggregation Query</title><link>https://community.appian.com/thread/124354?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 15:30:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bc5fb43c-5e3e-4b07-a309-bdee5c597048</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;It&amp;#39;s intentionally obfuscated through the Appian-based abstraction layer (the data store, at least for the older data types), particularly so that they can shift things around in the back-end on a progressive basis to tweak efficiency without breaking the way things work on the Designer front-end.&amp;nbsp; That&amp;#39;s all a long way of saying, we don&amp;#39;t &amp;quot;officially&amp;quot; have any way of directly knowing what the exact SQL is that eventually gets passed to the DB via the Appian query, but it&amp;#39;s reasonably safe to assume that by now they&amp;#39;ve probably fine-tuned it to be reasonably close to the most efficient thing possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Aggregation Query</title><link>https://community.appian.com/thread/124351?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 15:19:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0e391f32-0c9e-412b-b9ed-e10330bf3e20</guid><dc:creator>Karumuru Abhishek</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/praveend0002"&gt;ougdp2003&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;span class="ui-provider ed axq axr axs axt axu axv axw axx axy axz aya ayb ayc ayd aye ayf ayg ayh ayi ayj ayk ayl aym ayn ayo ayp ayq ayr ays ayt ayu ayv ayw ayx" dir="ltr"&gt;If our answers helped you please verify the answers. Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Aggregation Query</title><link>https://community.appian.com/thread/124350?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 15:14:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:03f26e77-03a8-45f0-8574-9fb67543072f</guid><dc:creator>ougdp2003</dc:creator><description>&lt;p&gt;All,&lt;/p&gt;
&lt;p&gt;Thank you for the quick responses. Very much helpful !!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Aggregation Query</title><link>https://community.appian.com/thread/124349?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 15:09:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ea14eb41-2ef8-4998-8502-4717ae852a39</guid><dc:creator>Karumuru Abhishek</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;Appian translates the expression into a corresponding SQL query and sends it to the database.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When these&amp;nbsp;aggregation functions&amp;nbsp;are used, Appian generates SQL queries that include GROUP BY clauses, and these queries are sent to the database engine for execution. Appian does not bring all the data into its memory and then perform grouping on it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Aggregation Query</title><link>https://community.appian.com/thread/124348?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 15:09:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c032d40f-1d15-457a-8e1b-c241f07f09d5</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello &lt;a class="internal-link view-user-profile" href="/members/praveend0002"&gt;ougdp2003&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;Your query aggregation is used as an SQL statement for execution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Aggregation Query</title><link>https://community.appian.com/thread/124347?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 15:07:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:69e7335b-2ed3-4f6a-959d-3cc2ed9ab6ec</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Aggregation and filtering happen on the Database level.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Aggregation Query</title><link>https://community.appian.com/thread/124346?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 15:07:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e8e4a45-4be8-4eb3-b1e6-5295ebbfd1d8</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Aggregations are translated into SQL statements and sent to the DB for execution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>