RS_AGG_TREE_VW

(SQL View)
Index Back

Aggregate Utilization Tree

Aggregate Utilization Tree

SELECT %Substring(B.SETCNTRLVALUE, 1, 5) , A.TREE_NAME , C.TREE_STRCT_ID , F.DESCR , A.EFFDT FROM PSTREEDEFN A , %Table(SET_CNTRL_TREE) B , PSTREESTRCT C , %Table(SETID_TBL) F WHERE A.SETID = B.SETID AND A.TREE_NAME = B.TREE_NAME AND A.TREE_STRCT_ID = C.TREE_STRCT_ID AND (C.NODE_RECNAME = 'DEPT_TBL' OR C.NODE_RECNAME = 'LOCATION_TBL' OR C.DTL_RECNAME = 'DEPT_TBL' OR C.DTL_RECNAME = 'LOCATION_TBL') AND A.EFF_STATUS = 'A' AND A.EFFDT = ( SELECT MAX(EFFDT) FROM PSTREEDEFN E WHERE E.SETID = A.SETID AND E.TREE_NAME = A.TREE_NAME AND E.SETCNTRLVALUE = A.SETCNTRLVALUE AND E.EFFDT <= %CurrentDateIn AND E.EFF_STATUS = 'A') AND A.SETID = F.SETID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 TREE_NAME Character(18) VARCHAR2(18) NOT NULL Tree Name
3 TREE_STRCT_ID Character(18) VARCHAR2(18) NOT NULL Tree Structure Name (see PSTREESTRCT).
4 DESCR Character(30) VARCHAR2(30) NOT NULL Description
5 EFFDT Date(10) DATE Effective Date

Default Value: %date