IT_TREE_NAME(SQL View) |
Index Back |
---|---|
IT Dept and Bu tree viewIT tree view for deptid and am business unit |
SELECT %Substring(C.SETCNTRLVALUE,1,5) , A.TREE_NAME , A.EFFDT , A.EFF_STATUS , A.DESCR , CASE WHEN B.DTL_RECNAME = 'DEPT_TBL' THEN 'D' ELSE 'B' END FROM PSTREEDEFN A , PSTREESTRCT B , PS_SET_CNTRL_TBL C WHERE A.TREE_STRCT_ID = B.TREE_STRCT_ID AND B.DTL_RECNAME IN ('DEPT_TBL','BUS_UNIT_TBL_AM') AND B.TREE_STRCT_TYPE = 'D' AND (C.SETID = A.SETID OR EXISTS ( SELECT 'X' FROM PS_SET_CNTRL_TREE D WHERE D.SETCNTRLVALUE = C.SETCNTRLVALUE AND D.SETID = A.SETID AND D.TREE_NAME = A.TREE_NAME)) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | TREE_NAME | Character(18) | VARCHAR2(18) NOT NULL | Tree Name |
3 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
4 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
6 | TREE_TYPE_ID | Character(1) | VARCHAR2(1) NOT NULL |
Tree Type Id
B=Business Unit D=Department |