RD_ACCT_OWNER_V

(SQL View)
Index Back

Account Onwer

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

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 REL_TYPE_ID FROM PS_BO_REL_CAT_ITEM WHERE BO_REL_CATEGORY_ID = 19) AND A.BO_ID = B.BO_ID_1 AND B.BO_ID_2 = C.BO_ID_2 AND B.REL_TYPE_ID IN ( SELECT REL_TYPE_ID FROM PS_BO_REL_CAT_ITEM WHERE BO_REL_CATEGORY_ID = 1) 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_OWNER 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.