PGM_RSK_HLTHCNT(SQL View) |
Index Back |
---|---|
Count of Risks with PlansThis view shows the count of Active and Potential Project Risks with Action Plans for each project/acivity. |
SELECT A.BUSINESS_UNIT , A.PROJECT_ID , A.ACTIVITY_ID , COUNT(*) FROM PS_PGM_PROJ_RISK A WHERE A.RISK_STATUS IN ('A', 'P') AND EXISTS ( SELECT 'X' FROM PS_PGM_ACTION_PLAN B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PROJECT_ID = B.PROJECT_ID AND A.RISK_ID = B.RISK_ID) GROUP BY A.BUSINESS_UNIT, A.PROJECT_ID, A.ACTIVITY_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | PROJECT_ID | Character(15) | VARCHAR2(15) NOT NULL | Project Id ChartField |
3 | ACTIVITY_ID | Character(15) | VARCHAR2(15) NOT NULL | Activity ID |
4 | NUMROWS | Number(15,0) | DECIMAL(15) NOT NULL | Number of Rows fetched. |