IT_TREE_NAME_LG

(SQL View)
Index Back

IT Dept and Bu tree view

IT tree view for deptid and am business unit

SELECT %Substring(C.SETCNTRLVALUE,1,5) , A.TREE_NAME , A.EFFDT , LG.LANGUAGE_CD , LG.DESCR FROM PSTREEDEFN A , PSTREEDEFNLANG LG , PSTREESTRCT B , PS_SET_CNTRL_TBL C WHERE A.TREE_STRCT_ID = B.TREE_STRCT_ID AND A.SETID = LG.SETID AND A.TREE_NAME = LG.TREE_NAME AND A.EFFDT = LG.EFFDT 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))

  • Related Language Record for IT_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 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
    5 DESCR Character(30) VARCHAR2(30) NOT NULL Description