Jump to: navigation, search

View CAMPAIGN

Description

Allows facts to be described based on attributes of an outbound campaign. Each row describes one campaign.

Column List

Column Description
CAMPAIGN_KEY The surrogate key that is used to join the CAMPAIGN dimension to the fact tables.
TENANT_KEY The surrogate key that is used to join the TENANT dimension to the fact tables.
CAMPAIGN_NAME The name of the campaign object in Configuration Server.
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.
DESCRIPTION The description of the campaign.
CAMPAIGN_CFG_DBID The campaign object identifier in contact center configuration.
START_TS The UTC-equivalent value of the date and time when the campaign was added to IDB, which may differ from when the campaign was actually added to contact center configuration.
END_TS The UTC-equivalent value of the date and time when the campaign object was removed from contact center configuration.

SQL Query

select
  ID               AS CAMPAIGN_KEY,
  TENANTID         AS TENANT_KEY,
  NAME             AS CAMPAIGN_NAME,
  CREATE_AUDIT_KEY AS CREATE_AUDIT_KEY,
  UPDATE_AUDIT_KEY AS UPDATE_AUDIT_KEY,
  DESCRIPTION      AS DESCRIPTION,
  ID               AS CAMPAIGN_CFG_DBID,
  CREATED_TS       AS START_TS,
  DELETED_TS       AS END_TS
  FROM GIDB_GC_CAMPAIGN
  UNION ALL
  SELECT
  -1               AS CAMPAIGN_KEY,
  -1               AS TENANT_KEY,
  'UNKNOWN'        AS CAMPAIGN_NAME,
  -1               AS CREATE_AUDIT_KEY,
  -1               AS UPDATE_AUDIT_KEY,
  'UNKNOWN'        AS DESCRIPTION,
  1                AS CAMPAIGN_CFG_DBID,
  1                AS START_TS,
  1                AS END_TS
  FROM dual
  UNION ALL
  SELECT
  -2               AS CAMPAIGN_KEY,
  -1               AS TENANT_KEY,
  'NO_VALUE'       AS CAMPAIGN_NAME,
  -1               AS CREATE_AUDIT_KEY,
  -1               AS UPDATE_AUDIT_KEY,
  'NO_VALUE'       AS DESCRIPTION,
  1                AS CAMPAIGN_CFG_DBID,
  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 August 29, 2016, at 13:53.