Jump to: navigation, search

View GROUP_

Description

Allows facts to be described based on the membership of resources in resource groups or membership of places in place groups. Routing points, queues, and agents can belong to resource groups. Places can belong to place groups. Each row describes one place group or resource group. A new row is issued for each configured place group and resource group, which is identified by its ID in the contact center configuration. Changing a group name causes an update to an existing row. Deleting a group and re-creating it under the same name causes a new row to be issued.

Column List

Column Description
GROUP_KEY The primary key of this view that is used to join the GROUP_ dimension to the fact tables.
TENANT_KEY The surrogate key that is used to join the TENANT dimension to the fact tables.
GROUP_NAME The group name.
CREATE_AUDIT_KEY The surrogate key that is used to join to the CTL_AUDIT_LOG control table. The key specifies the lineage for data creation. This value can be useful for aggregation, enterprise application integration (EAI), and ETL tools — that is, applications that need to identify newly added data.
UPDATE_AUDIT_KEY The surrogate key used to join to the CTL_AUDIT_LOG dimension. Specifies the lineage for data update. This value can be useful for aggregation, enterprise application integration (EAI), and ETL tools — that is, applications that need to identify recently modified data.
GROUP_TYPE The group type. This field is set to one of the following values:
  • Unknown
  • Agent
  • Place
  • Queue
  • RoutingPoint
  • Network Port
  • Service Number
  • Single Port

This value can change with localization.

GROUP_TYPE_CODE The group type code. This field is set to one of the following values:
  • UNKNOWN
  • AGENT
  • PLACE
  • QUEUE
  • ROUTINGPOINT
  • NETWORKPORT
  • SERVICENUMBER
  • SINGLEPORT

This value does not change with localization.

GROUP_CFG_DBID The group object identifier in the contact center configuration.
GROUP_CFG_TYPE_ID The contact center configuration integer type that is associated with the DN or agent group object.
START_TS The UTC-equivalent value of the date and time when the group was added to IDB, which may differ from when the group was actually added to contact center configuration.
END_TS The UTC-equivalent value of the date and time when the group was removed from contact center configuration.

SQL Query

SELECT
ID       AS GROUP_KEY,
TENANTID AS TENANT_KEY,
NAME     AS GROUP_NAME,
CREATE_AUDIT_KEY AS CREATE_AUDIT_KEY,
UPDATE_AUDIT_KEY AS UPDATE_AUDIT_KEY,
CASE TYPE
WHEN 0 THEN 'Unknown'
WHEN 1 THEN 'Agent'
WHEN 2 THEN 'Place'
WHEN 3 THEN
CASE DNGROUPTYPE
WHEN 0 THEN 'Unknown'
WHEN 1 THEN 'Single Port'
WHEN 2 THEN 'Queue'
WHEN 3 THEN 'RoutingPoint'
WHEN 4 THEN 'Network Port'
WHEN 5 THEN 'Service Number'
ELSE 'Unknown'
END
ELSE 'Unknown'
END AS GROUP_TYPE,
CASE TYPE
WHEN 0 THEN 'UNKNOWN'
WHEN 1 THEN 'AGENT'
WHEN 2 THEN 'PLACE'
WHEN 3 THEN
CASE DNGROUPTYPE
WHEN 0 THEN 'UNKNOWN'
WHEN 1 THEN 'SINGLEPORT'
WHEN 2 THEN 'QUEUE'
WHEN 3 THEN 'ROUTINGPOINT'
WHEN 4 THEN 'NETWORKPORT'
WHEN 5 THEN 'SERVICENUMBER'
ELSE 'UNKNOWN'
END
ELSE 'UNKNOWN'
END AS GROUP_TYPE_CODE,
ID       AS GROUP_CFG_DBID,
TYPE     AS GROUP_CFG_TYPE_ID,
CREATED_TS  AS START_TS,
DELETED_TS  AS END_TS
FROM GIDB_GC_GROUP
UNION ALL
SELECT
-1           AS GROUP_KEY,
-1           AS TENANT_KEY,
'UNKNOWN'    AS GROUP_NAME,
-1          AS CREATE_AUDIT_KEY,
-1          AS UPDATE_AUDIT_KEY,
'UNKNOWN'   AS GROUP_TYPE,
'UNKNOWN'   AS GROUP_TYPE_CODE,
-1          AS GROUP_CFG_DBID,
-1          AS GROUP_CFG_TYPE_ID,
-1          AS START_TS,
-1          AS END_TS
FROM dual
UNION ALL
SELECT
-2           AS GROUP_KEY,
-1           AS TENANT_KEY,
'No Group'   AS GROUP_NAME,
-1          AS CREATE_AUDIT_KEY,
-1          AS UPDATE_AUDIT_KEY,
'NO_VALUE'  AS GROUP_TYPE,
'NO_VALUE'  AS GROUP_TYPE_CODE,
-1          AS GROUP_CFG_DBID,
-1          AS GROUP_CFG_TYPE_ID,
-1          AS START_TS,
-1          AS END_TS
FROM dual

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on 29 August 2016, at 14:55.