View for conversation voice topic detail data (converted from materialized view)
CREATE VIEW vwconvvoicetopicdetaildata AS (
SELECT ct.keyid,
ct.conversationid,
ct.starttime,
ct.starttimeltc,
ct.participant,
ct.duration,
ct.confidence,
ct.topicname,
ct.topicid,
ct.topicphrase,
ct.transcriptphrase,
ct.updated,
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 ((convvoicetopicdetaildata ct
LEFT JOIN vwconvsummarydata cs ON (((cs.conversationid)::text = (ct.conversationid)::text)))
LEFT JOIN divisiondetails dd ON (((cs.divisionid)::text = (dd.id)::text)))
)
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
keyid | varchar(100) | true | ||||
conversationid | varchar(50) | true | ||||
starttime | timestamp without time zone | true | ||||
starttimeltc | timestamp without time zone | true | ||||
participant | varchar(50) | true | ||||
duration | numeric(20,2) | true | ||||
confidence | numeric(20,2) | true | ||||
topicname | varchar(200) | true | ||||
topicid | varchar(50) | true | ||||
topicphrase | varchar(200) | true | ||||
transcriptphrase | varchar(200) | true | ||||
updated | timestamp without time zone | 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.convvoicetopicdetaildata | 18 | BASE TABLE | |
public.vwconvsummarydata | 66 | See ConvSummaryData - Expands all the GUIDs with their lookups | VIEW |
public.divisiondetails | 4 | BASE TABLE |