<?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>Fetching Count of Status from DB</title><link>https://community.appian.com/discussions/f/general/13209/fetching-count-of-status-from-db</link><description>Hi 
 I have requests available in database and i need to fetch the count of status based upon the data (&amp;quot;Open&amp;quot;,&amp;quot;In-Progress&amp;quot;, &amp;quot;Closed&amp;quot;). So i am using query aggregation function and fetching the count. But now i have fetch the delta value based upon dates</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Fetching Count of Status from DB</title><link>https://community.appian.com/thread/59660?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 13:29:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb47cfc2-1fa7-4cf0-a490-26a08e9c1755</guid><dc:creator>yeswanththiyarir</dc:creator><description>Hi Krishna,&lt;br /&gt;
You can get all the data using a query rule. and then create another expression rule with the required inputs and functionality to get the results as desired.&lt;br /&gt;
Thanks,&lt;br /&gt;
Yeswanth.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching Count of Status from DB</title><link>https://community.appian.com/thread/59656?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 12:48:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1c1295d3-ceeb-4a35-b8b0-4dd73a68fdb4</guid><dc:creator>Shanmukha</dc:creator><description>Hi Krishan,&lt;br /&gt;
&lt;br /&gt;
That can be achieved but it is tricky. So I would suggest better to go and implement some stuff at database side like SP,...&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching Count of Status from DB</title><link>https://community.appian.com/thread/59653?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 12:20:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bf53f3d4-507c-4c55-9757-3536406e6cb0</guid><dc:creator>krishnaprasadd0001</dc:creator><description>Hi Shanmukh,&lt;br /&gt;
&lt;br /&gt;
 As per your suggestion i am going to create a view or SP only to fetch the data but i just want to know if there is any alternative to fetch the data by using query aggregation or any other method with good performance.&lt;br /&gt;
&lt;br /&gt;
Thanks for the help&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching Count of Status from DB</title><link>https://community.appian.com/thread/59647?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 11:50:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ae61937a-de99-407f-b0e7-51874e7b83ab</guid><dc:creator>Anuya Girwalkar</dc:creator><description>Hi KrishnaP,&lt;br /&gt;
SP is the best way to achieve this.&lt;br /&gt;
Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching Count of Status from DB</title><link>https://community.appian.com/thread/59644?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 11:22:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:350416e8-518e-4fba-bd3f-234672c98543</guid><dc:creator>Siva</dc:creator><description>Hi Krishna,&lt;br /&gt;
&lt;br /&gt;
For your requirement, as suggested by others&lt;br /&gt;
 1. Create a view and write a logic for status counts in View itself&lt;br /&gt;
 2. One query entity(1 call) to fetch and show the result.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Siva Chimata&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching Count of Status from DB</title><link>https://community.appian.com/thread/59627?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 08:50:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:462f7b47-e014-4716-935b-64541c56dfa2</guid><dc:creator>mayurm168</dc:creator><description>If you wish to handle all logic single DB call, you can fetch last 2 weeks data from DB at once and than you can manipulate it at Appian level.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching Count of Status from DB</title><link>https://community.appian.com/thread/59613?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 04:47:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f531626c-cf9c-48a5-b9ed-3b9c3732cd74</guid><dc:creator>Shiva Valusa</dc:creator><description>SP or a View is good idea. Following path might be helpful, please refer once.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://community.appian.com/w/the-appian-playbook/197/database-performance-best-practices"&gt;community.appian.com/.../database-performance-best-practices&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching Count of Status from DB</title><link>https://community.appian.com/thread/59612?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 04:45:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3723730b-d456-4736-bd58-061c18684a74</guid><dc:creator>Shanmukha</dc:creator><description>Hi KrishnaP,&lt;br /&gt;
&lt;br /&gt;
Why don&amp;#39;t you create a SP for this which runs on server and gives you the quick results with one call?!...&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>