PC_GETPARNT_ACT

(SQL View)
Index Back

Retrieve parent activity

This view will return the immediate parent activity for any activity based on the project's work breakdown structure.

SELECT A.BUSINESS_UNIT , A.PROJECT_ID , A.ACTIVITY_ID , MIN(B.ACTIVITY_ID) FROM PS_PC_WBSPARNT_VW A , PS_PROJ_ACTIVITY B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PROJECT_ID = B.PROJECT_ID AND B.WBS_ID = A.WBS_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 PARENT_ACTIVITY_ID Character(15) VARCHAR2(15) NOT NULL An Activity that is the parent of another Activity within a WBS tree structure.