View for conversation voice overview data (converted from materialized view)
CREATE VIEW vwconvvoiceoverviewdata AS (
SELECT cv.conversationid,
cv.sentimentscore,
cv.sentimenttrend,
cv.agentdurationpercentage,
cv.customerdurationpercentage,
cv.silencedurationpercentage,
cv.overtalkdurationpercentage,
cv.overtalkcount,
cv.ivrdurationpercentage,
cv.acddurationpercentage,
cv.otherdurationpercentage,
cs.conversationstartdate,
cs.conversationstartdateltc,
cs.conversationenddate,
cs.conversationenddateltc,
cs.ttalkcomplete,
cs.ani,
cs.dnis,
cs.firstmediatype,
cs.divisionid,
cs.firstqueueid,
cs.firstqueuename,
cs.lastqueueid,
cs.lastqueuename,
cs.firstagentid,
cs.firstagentname,
cs.firstagentdepartment AS firstagentdept,
cs.firstagentmanager AS firstagentmanagerid,
cs.firstagentmanager AS firstagentmanagername,
cs.lastagentid,
cs.lastagentname,
cs.lastagentdepartment AS lastagentdept,
cs.lastagentmanager AS lastagentmanagerid,
cs.lastagentmanager AS lastagentmanagername,
cs.firstwrapupcode,
cs.firstwrapname AS firstwrapupname,
cs.lastwrapupcode,
cs.lastwrapname AS lastwrapupname,
dd.name AS divisionname
FROM ((convvoiceoverviewdata cv
LEFT JOIN vwconvsummarydata cs ON (((cs.conversationid)::text = (cv.conversationid)::text)))
LEFT JOIN divisiondetails dd ON (((cs.divisionid)::text = (dd.id)::text)))
)
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
conversationid | varchar(50) | true | ||||
sentimentscore | numeric(20,2) | true | ||||
sentimenttrend | numeric(20,2) | true | ||||
agentdurationpercentage | numeric(20,2) | true | ||||
customerdurationpercentage | numeric(20,2) | true | ||||
silencedurationpercentage | numeric(20,2) | true | ||||
overtalkdurationpercentage | numeric(20,2) | true | ||||
overtalkcount | integer | true | ||||
ivrdurationpercentage | numeric(20,2) | true | ||||
acddurationpercentage | numeric(20,2) | true | ||||
otherdurationpercentage | numeric(20,2) | true | ||||
conversationstartdate | timestamp without time zone | true | ||||
conversationstartdateltc | timestamp without time zone | true | ||||
conversationenddate | timestamp without time zone | true | ||||
conversationenddateltc | timestamp without time zone | true | ||||
ttalkcomplete | numeric(20,2) | true | ||||
ani | varchar(400) | true | ||||
dnis | varchar(400) | true | ||||
firstmediatype | varchar(50) | true | ||||
divisionid | varchar(50) | true | ||||
firstqueueid | varchar(50) | true | ||||
firstqueuename | varchar(255) | true | ||||
lastqueueid | varchar(50) | true | ||||
lastqueuename | varchar(255) | true | ||||
firstagentid | varchar(50) | true | ||||
firstagentname | varchar(200) | true | ||||
firstagentdept | varchar(200) | true | ||||
firstagentmanagerid | varchar(200) | true | ||||
firstagentmanagername | varchar(200) | true | ||||
lastagentid | varchar(50) | true | ||||
lastagentname | varchar(200) | true | ||||
lastagentdept | varchar(200) | true | ||||
lastagentmanagerid | varchar(200) | true | ||||
lastagentmanagername | varchar(200) | true | ||||
firstwrapupcode | varchar(255) | true | ||||
firstwrapupname | varchar(255) | true | ||||
lastwrapupcode | varchar(255) | true | ||||
lastwrapupname | varchar(255) | true | ||||
divisionname | varchar(50) | true |
Name | Columns | Comment | Type |
---|---|---|---|
public.convvoiceoverviewdata | 20 | Voice Analysis Overview Data | BASE TABLE |
public.vwconvsummarydata | 66 | See ConvSummaryData - Expands all the GUIDs with their lookups | VIEW |
public.divisiondetails | 4 | BASE TABLE |