RSF_TR_BU_ND_VW

(SQL View)
Index Back

Territory Business Unit

Valid business units for Territory and Tree.

SELECT A.TREE_NAME , A.TERRITORY_ID , A.BUSINESS_UNIT 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

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 TREE_NAME Character(18) VARCHAR2(18) NOT NULL Tree Name

Prompt Table: RSF_TR_TREE_VW

2 TERRITORY_ID Character(20) VARCHAR2(20) NOT NULL Territory ID
3 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit