RD_CUST_REPS_EM

(SQL View)
Index Back

Customer Reps View

Current Customer Reps View Added in by Eric B. for Perfomance Issues ICE #504366000

SELECT A.BO_ID_2 , D.BO_ID , E.PROFILE_CM_SEQ , E.EMAIL_ADDR , E.CM_CONCAT FROM PS_BO_REL A , PS_BO_REL_CAT_ITEM B , PS_BO D , PS_BO_SRCH_EML E WHERE B.BO_REL_CATEGORY_ID = 1 AND A.START_DT <= %CurrentDateIn AND A.END_DT > %CurrentDateIn AND A.REL_TYPE_ID = B.REL_TYPE_ID AND A.BO_ID_1 = D.BO_ID AND D.BO_ID = E.BO_ID AND A.BO_REL_ID = E.BO_REL_ID AND E.PRIMARY_IND = 'Y' AND E.BO_REL_ID > 0 AND E.CM_USE_START_DT <= %CurrentDateIn AND E.CM_USE_END_DT > %CurrentDateIn

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BO_ID_CUST Number(31,0) DECIMAL(31) NOT NULL This field stores the Business Object ID for the customer.
2 BO_ID Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID
3 PROFILE_CM_SEQ Number(31,0) DECIMAL(31) NOT NULL The Contact Method Profile ID is a key field that is used to reference the details of a Contact Method in various CM tables.
4 EMAIL_ADDR Character(70) VARCHAR2(70) NOT NULL Email address to store the address of email.
5 CM_CONCAT Character(100) VARCHAR2(100) NOT NULL Concatenated Contact Method