Adherence Summarised Daily Data
CREATE VIEW vwadherencedaydata AS (
SELECT ad.userid,
ad.startdate,
ad.startdateltc,
ad.daystartoffsetsecs,
((ad.daystartoffsetsecs)::numeric / 86400.00) AS daystartoffsetsecsday,
ad.adherenceperc,
ad.conformperc,
ad.impact,
ad.adherenceschedulesecs,
((ad.adherenceschedulesecs)::numeric / 86400.00) AS adherenceschedulesecsday,
ad.conformanceschedulesecs,
((ad.conformanceschedulesecs)::numeric / 86400.00) AS conformanceschedulesecsday,
ad.conformanceactualsecs,
((ad.conformanceactualsecs)::numeric / 86400.00) AS conformanceactualsecsday,
ad.exceptioncount,
ad.exceptiondurationsecs,
((ad.exceptiondurationsecs)::numeric / 86400.00) AS exceptiondurationsecsday,
ad.impactseconds,
((ad.impactseconds)::numeric / 86400.00) AS impactsecondsday,
ad.schedulelengthsecs,
((ad.schedulelengthsecs)::numeric / 86400.00) AS schedulelengthsecsday,
ad.actuallengthsecs,
((ad.actuallengthsecs)::numeric / 86400.00) AS actuallengthsecsday,
ud.name AS agentname,
ud.managerid,
ud.managername
FROM (adherencedaydata ad
LEFT JOIN vwuserdetail ud ON (((ud.id)::text = (ad.userid)::text)))
)
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
userid | varchar(50) | true | User GUID | |||
startdate | timestamp without time zone | true | Start Date (UTC) | |||
startdateltc | timestamp without time zone | true | Start Date (LTC) | |||
daystartoffsetsecs | integer | true | Start of Day Offset | |||
daystartoffsetsecsday | numeric | true | Start of Day Offset in seconds | |||
adherenceperc | numeric(20,2) | true | Adherence Percentage | |||
conformperc | numeric(20,2) | true | Conformance Percentage | |||
impact | varchar(50) | true | Impact | |||
adherenceschedulesecs | integer | true | The Total Adherance Time that adherence is measured against | |||
adherenceschedulesecsday | numeric | true | The Total Adherance Time that adherence is measured against in seconds | |||
conformanceschedulesecs | integer | true | The Total Conformance Time that adherence is measured against | |||
conformanceschedulesecsday | numeric | true | The Total Conformance Time that adherence is measured against in seconds | |||
conformanceactualsecs | integer | true | Total Time Agent in Conformance | |||
conformanceactualsecsday | numeric | true | Total Time Agent in Conformance | |||
exceptioncount | integer | true | Total Exception Count | |||
exceptiondurationsecs | integer | true | Impacted Seconds | |||
exceptiondurationsecsday | numeric | true | Exception Duration Seconds | |||
impactseconds | integer | true | Impacted Seconds | |||
impactsecondsday | numeric | true | ||||
schedulelengthsecs | integer | true | Total Scheduled Time (Seconds) | |||
schedulelengthsecsday | numeric | true | Total Scheduled Time (Seconds) | |||
actuallengthsecs | integer | true | Total Actual Scheduled Time length | |||
actuallengthsecsday | numeric | true | Total Actual Scheduled Time length in seconds | |||
agentname | varchar(200) | true | Agent Name | |||
managerid | varchar(50) | true | Manager GUID | |||
managername | varchar(200) | true | Manager Nam |
Name | Columns | Comment | Type |
---|---|---|---|
public.adherencedaydata | 17 | Adherence Summarised Daily Data | BASE TABLE |
public.vwuserdetail | 17 | See UserDetail: User Description in detail | VIEW |