RSF_SUSER_TR_VW(SQL View) |
Index Back |
---|---|
Sales User Territory ViewSales users within given territories as a view |
SELECT A.EFFDT , A.PERSON_ID , A.TREE_NAME , A.TERRITORY_ID , A.IS_SALES_REP , A.PRIMARY_USER FROM PS_RSF_TR_TEAM A , PS_RSF_TER_NODE_VW T WHERE A.TREE_NAME = T.TREE_NAME AND A.TERRITORY_ID = T.TERRITORY_ID AND A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_RSF_TR_TEAM B WHERE A.TREE_NAME = B.TREE_NAME AND A.TERRITORY_ID = B.TERRITORY_ID AND A.PERSON_ID = B.PERSON_ID AND B.EFFDT <= %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
2 | PERSON_ID | Character(15) | VARCHAR2(15) NOT NULL | Person ID |
3 | TREE_NAME | Character(18) | VARCHAR2(18) NOT NULL | Tree Name |
4 | TERRITORY_ID | Character(20) | VARCHAR2(20) NOT NULL | Territory ID |
5 | IS_SALES_REP | Character(1) | VARCHAR2(1) NOT NULL | Sales Rep |
6 | PRIMARY_USER | Character(1) | VARCHAR2(1) NOT NULL | Primary Sales User |