RSF_TR_ORG_C_VW

(SQL View)
Index Back

View of All Child Territories

View that shows all Child Territory Organizations along with the Parent territory organization.

SELECT A.TREE_NAME , B.PARENT_NODE_NAME , B.TREE_NODE , C.DESCR FROM %Table(PSTREEDEFN) A , %Table(PSTREENODE) B , %Table(RSF_TERRITORY) C WHERE A.TREE_STRCT_ID = 'TERRITORY_TREE' AND B.SETID = A.SETID AND B.SETCNTRLVALUE = A.SETCNTRLVALUE AND B.EFFDT = A.EFFDT AND B.PARENT_NODE_NAME <> ' ' AND %EffdtCheck(PSTREEDEFN D, A, %CurrentDateIn) AND B.TREE_NAME = C.TREE_NAME AND B.TREE_NODE = C.TERRITORY_ID

  • Related Language Record: RSF_TR_C_LNG_VW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 TREE_NAME Character(18) VARCHAR2(18) NOT NULL Tree Name
    2 TERRITORY_PARENT Character(20) VARCHAR2(20) NOT NULL Territory Parent
    3 TERRITORY_ID Character(20) VARCHAR2(20) NOT NULL Territory ID
    4 DESCR Character(30) VARCHAR2(30) NOT NULL Description