RC_RSKPGSTAT_VW

(SQL View)
Index Back

SLA by Status

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

SELECT A.BUSINESS_UNIT , A.PROVIDER_GRP_ID , B.NAME1 ,B.RC_MANAGER , COUNT(DISTINCT A.CASE_ID) , A.RC_STATUS , 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_STATUS_TBL D WHERE %CurrentDateTimeIn >= A.RC_YELLOW_DTTM AND D.STATUS_CATEGORY NOT IN ('C', 'D') AND C.SETCNTRLVALUE = A.BUSINESS_UNIT AND C.RECNAME = 'RF_PROVIDER_GRP' AND B.SETID = C.SETID AND A.PROVIDER_GRP_ID = B.PROVIDER_GRP_ID AND D.SETID = ( SELECT E.SETID FROM PS_SET_CNTRL_REC E WHERE E.SETCNTRLVALUE = A.BUSINESS_UNIT AND E.RECNAME = 'RC_STATUS_TBL') AND A.RC_STATUS = D.RC_STATUS GROUP BY A.BUSINESS_UNIT, A.PROVIDER_GRP_ID, B.NAME1,B.RC_MANAGER, A.RC_STATUS,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_STATUS Character(5) VARCHAR2(5) NOT NULL Case Status
7 RC_SHORT_DESCR Character(20) VARCHAR2(20) NOT NULL Short Description. Used on may CallCenter set-up tables
8 DATAHINTS Character(100) VARCHAR2(100) NOT NULL Chart Data Hints
9 DISP_TMPL_FAM_CD Character(30) VARCHAR2(30) NOT NULL Display Template Family Code