<?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 SUM and AS support for UCCX Script in DevNet General Discussions</title>
    <link>https://community.cisco.com/t5/devnet-general-discussions/sum-and-as-support-for-uccx-script/m-p/3549648#M666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 12pt;"&gt;We have a customer who have database dips setup between UCCX and SQL Server. Everthing is working fine but they are trying to run a query which has SUM and AS in the query. When I run the query, I see the correct results but when I try to set the field which is been summed, it goes into SQL Error branch. I was wondering if that is supported. The query is as follows. &lt;BR /&gt;&lt;BR /&gt;SELECT account_no, occupant_code, SUM(a.trans_amt) AS Total FROM pu_balance_hist a WHERE account_no = '12345' AND a.occupant_code = '12' AND trans_type in ( 'N','I') AND a.trans_date &amp;gt;= ( CONVERT (date, getdate()-365)) GROUP BY a.account_no, a.occupant_code,a.trans_date&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2019 10:45:54 GMT</pubDate>
    <dc:creator>Imran Khan</dc:creator>
    <dc:date>2019-03-01T10:45:54Z</dc:date>
    <item>
      <title>SUM and AS support for UCCX Script</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/sum-and-as-support-for-uccx-script/m-p/3549648#M666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 12pt;"&gt;We have a customer who have database dips setup between UCCX and SQL Server. Everthing is working fine but they are trying to run a query which has SUM and AS in the query. When I run the query, I see the correct results but when I try to set the field which is been summed, it goes into SQL Error branch. I was wondering if that is supported. The query is as follows. &lt;BR /&gt;&lt;BR /&gt;SELECT account_no, occupant_code, SUM(a.trans_amt) AS Total FROM pu_balance_hist a WHERE account_no = '12345' AND a.occupant_code = '12' AND trans_type in ( 'N','I') AND a.trans_date &amp;gt;= ( CONVERT (date, getdate()-365)) GROUP BY a.account_no, a.occupant_code,a.trans_date&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 10:45:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/sum-and-as-support-for-uccx-script/m-p/3549648#M666</guid>
      <dc:creator>Imran Khan</dc:creator>
      <dc:date>2019-03-01T10:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: SUM and AS support for UCCX Script</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/sum-and-as-support-for-uccx-script/m-p/3549649#M667</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;&amp;nbsp; I think this could be issue with Executing a MS SQL Stored Procedure. Its not related to SUM . I would request you to refer the following url&amp;nbsp; &lt;A href="https://supportforums.cisco.com/discussion/11172061/executing-ms-sql-stored-procedure-uccx-8" title="https://supportforums.cisco.com/discussion/11172061/executing-ms-sql-stored-procedure-uccx-8"&gt;Executing a MS SQL Stored Procedure - UCCX 8 | Contact Center | Cisco Support Community | 5926 | 11172061&lt;/A&gt; for related information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Geevarghese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 12:23:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/sum-and-as-support-for-uccx-script/m-p/3549649#M667</guid>
      <dc:creator>Geevarghese Cheria</dc:creator>
      <dc:date>2014-09-17T12:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: SUM and AS support for UCCX Script</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/sum-and-as-support-for-uccx-script/m-p/3549650#M668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without knowing anything about what your Field Select tab looks like in your DB Get Step..ensure the Variable you are trying to set is the Data Type the DB is returning..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 21:20:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/sum-and-as-support-for-uccx-script/m-p/3549650#M668</guid>
      <dc:creator>Samuel Womack</dc:creator>
      <dc:date>2014-09-17T21:20:11Z</dc:date>
    </item>
  </channel>
</rss>

