RSF_TEAMTREE_VW

(SQL View)
Index Back

Trees by sales user

CRM Sales - Trees by sales user.

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) AND A.PERSON_ID <> ' '

# 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