public.vwcallabandonedsummary

public.vwcallabandonedsummary

Description

Shows the details for abandoned calls in the detailed interaction data – Expands all the GUIDs with their lookups

Table Definition

CREATE VIEW vwcallabandonedsummary AS (
 SELECT det.conversationid,
    det.conversationstartdate,
    det.conversationstartdateltc,
    det.conversationenddate,
    det.conversationenddateltc,
    det.segmentstartdate,
    det.segmentstartdateltc,
    det.segmentenddate,
    det.segmentenddateltc,
    det.convtosegmentendtime AS totalcalltime,
    det.segmenttime AS queuetime,
    (det.convtosegmentendtime / 86400.00) AS totalcalltimeday,
    (det.segmenttime / 86400.00) AS queuetimeday,
    det.ani,
    det.dnis,
    det.queueid,
    que.name AS queuename,
    det.purpose,
    det.segmenttype,
    det.disconnectiontype
   FROM (detailedinteractiondata det
     LEFT JOIN queuedetails que ON (((det.queueid)::text = (que.id)::text)))
  WHERE (((det.segmenttype)::text = ANY ((ARRAY['delay'::character varying, 'Interact'::character varying, 'alert'::character varying])::text[])) AND ((det.purpose)::text = 'acd'::text) AND ((det.disconnectiontype)::text = 'peer'::text) AND (det.conversationenddate = det.segmentenddate))
)

Columns

Name Type Default Nullable Children Parents Comment
conversationid varchar(50) true Conversation ID
conversationstartdate timestamp without time zone true Conversation Start Date(UTC)
conversationstartdateltc timestamp without time zone true Conversation Start Date(LTC)
conversationenddate timestamp without time zone true Conversation End Date(UTC)
conversationenddateltc timestamp without time zone true Conversation End Date(LTC)
segmentstartdate timestamp without time zone true Segment Start Date(UTC)
segmentstartdateltc timestamp without time zone true Segment Start Date(LTC)
segmentenddate timestamp without time zone true Segment End Date(UTC)
segmentenddateltc timestamp without time zone true Segment End Date(LTC)
totalcalltime numeric(20,2) true Total Call Time
queuetime numeric(20,2) true Queue Time
totalcalltimeday numeric true Total Call Time per Day
queuetimeday numeric true Queue Time per Day
ani varchar(400) true ANI
dnis varchar(400) true DNIS
queueid varchar(50) true Queue GUID
queuename varchar(255) true Queue Name
purpose varchar(50) true Purpose
segmenttype varchar(50) true Segment Type
disconnectiontype varchar(50) true Disconnection Type

Referenced Tables

Name Columns Comment Type
public.detailedinteractiondata 101 Conversation Detailed Data BASE TABLE
public.queuedetails 17 Queue Lookup data BASE TABLE

    • Related Articles

    • public.z_vwcallabandonedsummary

      Description See CallAbandonedSummary: Summary of abandoned calls with relevant details Table Definition CREATE VIEW z_vwcallabandonedsummary AS ( SELECT det.conversationid, det.conversationstartdate, (det.conversationstartdate AT TIME ZONE ...
    • public.participantattributesdynamic

      Description Columns Name Type Default Nullable Children Parents Comment keyid varchar(50) false conversationid varchar(50) false conversationstartdate timestamp without time zone false conversationstartdateltc timestamp without time zone true ...
    • public.evalquestiondata

      Description Columns Name Type Default Nullable Children Parents Comment keyid varchar(50) false evaluationid varchar(50) false evaluationformid varchar(50) false questiongroupid varchar(50) true questionid varchar(50) true answerid varchar(50) true ...
    • public.userpresencedetaileddata

      Description User Presence Detailed Data Columns Name Type Default Nullable Children Parents Comment keyid varchar(255) false Primary Key userid varchar(50) true Agent GUID starttime timestamp without time zone false Start Time (UTC) starttimeltc ...
    • public.userinteractionpresencedetaileddata

      Description Columns Name Type Default Nullable Children Parents Comment keyid varchar(255) false userid varchar(50) true starttime timestamp without time zone false starttimeltc timestamp without time zone true endtime timestamp without time zone ...