" /> Brion and Agent grouping - Genesys CTI User Forum

Author Topic: Brion and Agent grouping  (Read 9736 times)

tony

  • Guest
Re: Brion and Agent grouping
« Reply #15 on: January 07, 2009, 07:49:00 AM »
Advertisement
I am intrigued by this post - did you resolve this issue, at all?

Tony

tony

  • Guest
Re: Brion and Agent grouping
« Reply #16 on: January 12, 2009, 01:25:29 PM »
[i]<See Vic's note in the Announcements Section, regarding missing posts...> :([/i]

I think my previous post looked something like this;

SELECT  OBJECT.OBJECT_ID,
        OBJECT.OBJECT_NAME,
        OBJECT.PRESENTATION_NAME,
        OBJ_TO_OBJ.PARENT_ID,
        OBJ_TO_OBJ.CHILD_ID,
        OBJECT2.OBJECT_ID,
        OBJECT2.PRESENTATION_NAME,
        OBJECT.OBJECT_TYPE_ID,
        OBJECT2.OBJECT_TYPE_ID
  FROM  [color=blue]DBNAME[/color].OBJECT, MART1.OBJ_TO_OBJ, [color=blue]DBNAME[/color].OBJECT OBJECT2
WHERE      (OBJECT.OBJECT_ID = OBJ_TO_OBJ.PARENT_ID)
        AND (OBJECT2.OBJECT_ID = OBJ_TO_OBJ.CHILD_ID)
        AND (OBJ_TO_OBJ.DELETE_TIME IS NULL)
        AND (OBJECT.PRESENTATION_NAME = [color=blue]'AGENT_GROUP_NAME'[/color])
        AND (OBJECT.OBJECT_TYPE_ID = 2)
        AND (OBJECT2.OBJECT_TYPE_ID = 0)

NOTES:

1. Items in [color=blue]BLUE [/color] are local variables.
2. I have opted to apply just one "IS NULL" to the Delete Time of the Obj_to_Obj Table, which seems to work very well and removes duplcation, too...
3. I have constrained both versions of the Object Table - where it is the ParentID, to Object_Type_ID "2" (Agent Group) and where it is the ChildID, to Object_Type_ID "0" (Agent).  This speeds up the Query by Flitering just the required Object Types, prior to the other WHERE clauses from being conducted.

I did put in some other detail in my (lost) post but I'm getting old and I can't remember what that might have been, now...  ::)

I hope this helps - please let me know if it works for you..?

Tony

Offline cghera

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Brion and Agent grouping
« Reply #17 on: January 13, 2009, 08:11:06 PM »
Well... we are equally sorry. No It didnt work .
I dont think the inner join made any difference but I tried it using exactly your select (query analyzer this time)
Got same results. What about that ETL version? where do I see it?

tony

  • Guest
Re: Brion and Agent grouping
« Reply #18 on: January 15, 2009, 03:32:02 PM »
If you have access to the ETL Assistant, you should be able to look up the ETL version, under Help>About ...?

Tony

Offline cghera

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Brion and Agent grouping
« Reply #19 on: January 19, 2009, 05:51:05 PM »
The version is 7.1.000.00