RSF_TERR_DS2_VW

(SQL View)
Index Back

Territory Prompt

Territory Prompt for New Territory

SELECT A.TREE_NAME , A.TERRITORY_ID , A.DESCR FROM PS_RSF_TERRITORY A , PSTREENODE B ,PS_RSF_TR_NEW_TREE C WHERE B.EFFDT = ( SELECT MAX(B_ED.EFFDT) FROM PSTREEDEFN B_ED WHERE B.SETID = B_ED.SETID AND B.SETCNTRLVALUE = B_ED.SETCNTRLVALUE AND B.TREE_NAME = B_ED.TREE_NAME AND B_ED.EFFDT <= %CurrentDateIn) AND A.TREE_NAME = C.TREE_NAME AND B.TREE_NAME = A.TREE_NAME AND A.TERRITORY_ID = B.TREE_NODE

  • Related Language Record: RSF_TER_DS2_LVW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 TREE_NAME Character(18) VARCHAR2(18) NOT NULL Tree Name
    2 TO_TERRITORY Character(20) VARCHAR2(20) NOT NULL New Territory
    3 DESCR Character(30) VARCHAR2(30) NOT NULL Description