Avaya Support Forums  

Go Back   Avaya Support Forums > Contact Center Applications

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-25-2015, 04:46 AM
lnesje lnesje is offline
Whiz
 
Join Date: Jun 2013
Posts: 48
lnesje has 12 reputation points
Default AACC 6.4, SQL statement

From Contact summary report, to find repeated callers in a period is very manual job.

Could anyone share the SQL statement to use for where the originator > 1 last 7 days ?

To be able to count how many times the same number has called, in a period
count originator number calling, if more than 1, list, period = last 7 days.

thanks
Reply With Quote
  #2  
Old 03-26-2015, 03:31 AM
hergenmuelle hergenmuelle is offline
Hot Shot
.
 
Join Date: Jul 2012
Posts: 20
hergenmuelle has 13 reputation pointshergenmuelle has 13 reputation points
Default

One way to do that:
select Originator, CountOf from (select distinct Originator, count(Originator) as CountOf from dbo.eCSRStat WHERE {fn TIMESTAMPDIFF(SQL_TSI_HOUR,LastTreatmentStamp, CURRENT_TIMESTAMP)} <= 700 group by Originator ) where CountOf > 1

=> show all Originators occurring more than once within the last 700 hours.
This is just an example and can be enhanced if required.
Reply With Quote
Reply

Tags
aacc, database, originator, sql

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:17 AM.

This Forum is provided solely for the use and convenience of Avaya customers and partners. Use of the Forum is subject to the Terms and Use and Privacy Statement found at www.avaya.com. No other use is permitted. The Forum including all content posted is “AS IS” and Avaya expressly disclaims all warranties and/or guarantees as to its accuracy, reliability, usefulness, quality or non-infringement of intellectual property. Avaya reserves the right to remove any content posted on the Forum at any time and for whatever reason.

Avaya will not be liable for any content posted on this Forum, including, without limitation, any errors or omissions or for any losses or damages of any kind incurred as a result of use or reliance on any content, regardless of its origin.

You expressly understand and agree that you assume all risks associated with use or reliance on this content.