RSF_USR_TREE_VW

(SQL View)
Index Back

Trees by sales user

Note: There is a clone of RSF_OPR_TREE_VW called RSF_OPR_TREE1VW. If you change RSF_OPR_TREE_VW then you must change RSF_OPR_TREE1VW.

SELECT DISTINCT A.PERSON_ID ,A.TREE_NAME FROM PS_RSF_TR_TEAM A WHERE 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 PERSON_ID Character(15) VARCHAR2(15) NOT NULL Person ID
2 TREE_NAME Character(18) VARCHAR2(18) NOT NULL Tree Name