RD_ACCT_MBR_VW

(SQL View)
Index Back

Account Team Member

My Contacts Data Rule Set: Contacts for accounts which sale rep is account team member

SELECT D.PERSON_ID , B.BO_ID_2 , B.BO_ID_1 , A.SYNCID FROM PS_RD_PERSON A , PS_BO_REL B , PS_BO_REL C , PS_RD_PERSON D WHERE D.BO_ID = C.BO_ID_1 AND C.START_DT <= %CurrentDateIn AND C.REL_TYPE_ID IN ( SELECT E.REL_TYPE_ID FROM PS_BO_REL_CAT_ITEM E WHERE E.BO_REL_CATEGORY_ID = 20) AND C.BO_ID_2 = B.BO_ID_2 AND B.BO_ID_1 = A.BO_ID AND B.REL_TYPE_ID IN (9,10,11,12,13,14) AND B.START_DT <= %CurrentDateIn AND B.END_DT > %CurrentDateIn AND C.END_DT > %CurrentDateIn

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 PERSON_ID_MBR Character(15) VARCHAR2(15) NOT NULL Contact Identifier for Treasury Contacts
2 BO_ID_CUST Number(31,0) DECIMAL(31) NOT NULL This field stores the Business Object ID for the customer.
3 BO_ID_CONTACT Number(31,0) DECIMAL(31) NOT NULL This field indicates the Business Object ID for the contact.
4 SYNCID Number(10,0) DECIMAL(10) NOT NULL The Synchronization ID field stores a value generated by the sync processor. The value is used to identify the type of object that the sync processor is about to handle.