RC_RSKPGPRI_V

(SQL View)
Index Back

SLA by Priority

Number of cases at risk of or missing their SLA by provider group, manager and priority.

SELECT A.BUSINESS_UNIT , A.PROVIDER_GRP_ID , B.NAME1 ,B.RC_MANAGER , COUNT(DISTINCT A.CASE_ID) , A.RC_PRIORITY , D.RC_SHORT_DESCR ,A.DISP_TMPL_FAM_CD FROM PS_RC_CASE A , PS_RF_PROVIDER_GRP B , PS_SET_CNTRL_REC C , PS_RC_PRIORITY_TBL D , PS_RC_STATUS_TBL E WHERE %CurrentDateTimeIn >= A.RC_YELLOW_DTTM AND C.SETCNTRLVALUE = A.BUSINESS_UNIT AND E.STATUS_CATEGORY NOT IN ('C', 'D') AND A.RC_STATUS=E.RC_STATUS AND C.RECNAME = 'RF_PROVIDER_GRP' AND B.SETID = C.SETID AND A.PROVIDER_GRP_ID = B.PROVIDER_GRP_ID AND D.SETID = ( SELECT F.SETID FROM PS_SET_CNTRL_REC F WHERE F.SETCNTRLVALUE = A.BUSINESS_UNIT AND F.RECNAME = 'RC_PRIORITY_TBL') AND E.SETID = ( SELECT G.SETID FROM PS_SET_CNTRL_REC G WHERE G.SETCNTRLVALUE = A.BUSINESS_UNIT AND G.RECNAME = 'RC_STATUS_TBL') AND A.RC_PRIORITY = D.RC_PRIORITY GROUP BY A.BUSINESS_UNIT, A.PROVIDER_GRP_ID, B.NAME1, B.RC_MANAGER, A.RC_PRIORITY, A.DISP_TMPL_FAM_CD, D.RC_SHORT_DESCR

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 PROVIDER_GRP_ID Character(10) VARCHAR2(10) NOT NULL Identification number for the provider group.
3 NAME1 Character(50) VARCHAR2(50) NOT NULL Generic 50 character name field for storing names.
4 RC_MANAGER Character(15) VARCHAR2(15) NOT NULL Call Center Manager. Used in call center business unit setup.
5 RC_CASE_COUNT Number(7,0) INTEGER NOT NULL Case Count
6 RC_PRIORITY Character(5) VARCHAR2(5) NOT NULL Case Priority
7 RC_SHORT_DESCR Character(20) VARCHAR2(20) NOT NULL Short Description. Used on may CallCenter set-up tables
8 DISP_TMPL_FAM_CD Character(30) VARCHAR2(30) NOT NULL Display Template Family Code