RSF_TR_ORG_M_VW(SQL View) |
Index Back |
---|---|
View of All Child TerritoriesView that shows all Child Territory Organizations along with the Parent territory organization. |
SELECT D.OPRID , A.TREE_NAME , B.TERRITORY_ID , B.DESCR FROM %Table(PSTREEDEFN) A , %Table(RSF_TERRITORY) B , %Table(RSF_TR_TEAM_VW) C , %Table(RB_OPRALIAS_VW) D WHERE A.TREE_STRCT_ID = 'TERRITORY_TREE' AND %EffdtCheck(PSTREEDEFN D, A, %CurrentDateIn) AND A.TREE_NAME = B.TREE_NAME AND B.TREE_NAME = C.TREE_NAME AND B.TERRITORY_ID = C.TERRITORY_ID AND C.PERSON_ID = D.PERSON_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
2 | TREE_NAME | Character(18) | VARCHAR2(18) NOT NULL | Tree Name |
3 | TERRITORY_ID | Character(20) | VARCHAR2(20) NOT NULL | Territory ID |
4 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |