RBM_PRSN_CUST

(SQL View)
Index Back

View to get relationships.

View to get customer relationships for a contact. Used by Task Management.

SELECT c.PERSON_ID , a.BO_ID_2 , a.ROLE_TYPE_ID_2 , a.BO_ID_1 , a.ROLE_TYPE_ID_1 , b.BO_NAME ,c.SYNCID ,c.SYNCDTTM ,c.ROW_LASTMANT_DTTM FROM PS_BO_REL a , PS_BO_NAME_PRIM_VW b , PS_RD_PERSON c WHERE a.BO_ID_2 = b.BO_ID AND a.BO_ID_1 = c.BO_ID AND START_DT <= %CurrentDateIn AND END_DT > %CurrentDateIn AND REL_TYPE_ID IN (9, 10, 13, 14, 46, 47)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 PERSON_ID Character(15) VARCHAR2(15) NOT NULL Person ID
2 BO_ID_CUST Number(31,0) DECIMAL(31) NOT NULL This field stores the Business Object ID for the customer.
3 ROLE_TYPE_ID_CUST Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the customer
4 BO_ID_CONTACT Number(31,0) DECIMAL(31) NOT NULL This field indicates the Business Object ID for the contact.
5 ROLE_TYPE_ID_CNTCT Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the contact
6 CUST_NAME Character(50) VARCHAR2(50) NOT NULL This field is used to represent the customer name
7 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.
8 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time
9 ROW_LASTMANT_DTTM DateTime(26) TIMESTAMP The date and time that the row was last updated.