Avaya Support Forums  

Go Back   Avaya Support Forums > Contact Center Applications

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2016, 07:09 AM
mscisk mscisk is offline
Hot Shot
 
Join Date: Sep 2013
Posts: 10
mscisk has 10 reputation points
Default Cms groupagent interval

Hi,

Could anyone help me with below topic. I would like to screate a GroupAgent Interval report. Everything works fine except moment when to the WHERE statement I would like to add GROUP BY.

SELECT OK
ROW_DATE, STARTTIME, hagent.STARTTIME + hagent.INTRVL, hagent.LOGID, ACDCALLS, TRANSFERRED, 100 * (ACDCALLS - TRANSFERRED) / ACDCALLS, 3600 * (ACDCALLS) / (TI_STAFFTIME), NOANSREDIR, (ACDTIME + ACWTIME + HOLDTIME) / ACDCALLS, TOTAL_I_ACDTIME, TOTAL_I_ACWTIME, HOLDACDTIME, TI_AUXTIME1, TI_AUXTIME2, TI_AUXTIME3, TI_AUXTIME4, TI_AUXTIME5, TI_AUXTIME6, TI_AUXTIME7, TI_AUXTIME8, TI_AUXTIME0, TI_AUXTIME, RINGTIME, TI_OTHERTIME, TI_AVAILTIME, TI_STAFFTIME FROM hagent

WHERE OK
ACD=$acd and LOGID in (select value from agroups where item_name = [Agent Group:] and acd_no=$acd) and ROW_DATE = [Date:] and STARTTIME = [Times:]

With above configuration when i run report per every Agent per every interval there are few rows - each row is a separate SPLIT.

When i add to above WHERE condition GROUP BY hagent.LOGID then error occures:
QUERY0 The coumn must be in the GROUP BY list.

Any clue?
Reply With Quote
  #2  
Old 01-14-2016, 06:33 AM
shaikht shaikht is offline
Genius
.
 
Join Date: Feb 2010
Posts: 246
shaikht has 25 to 49 reputation pointsshaikht has 25 to 49 reputation pointsshaikht has 25 to 49 reputation points
Default

Hi,

It looks to be complex SQL and I will suggest to break in parts to isolate the culprit item which need to be part of group by list.

If you want Avaya to look into it, we have Avaya Professional Services which work on creating such designer reports.

I hope it helps.
Reply With Quote
Reply

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:48 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.