RB_COMP_CONT_VW

(SQL View)
Index Back

The Contact Customer view

This view returns all the customers the person belongs to.

SELECT A.SETID , A.COMPANYID , C.PERSON_ID , A.BO_ID , C.BO_ID , B.START_DT , B.ROLE_TYPE_ID_1 , B.ROLE_TYPE_ID_2 , B.REL_TYPE_ID , C.SYNCID , C.SYNCDTTM FROM PS_RD_COMPANY A , PS_BO_REL B , PS_RD_PERSON C WHERE A.BO_ID = B.BO_ID_2 AND B.BO_ID_1 = C.BO_ID AND B.ROLE_TYPE_ID_1 = 8 AND B.ROLE_TYPE_ID_2 = 2 AND B.REL_TYPE_ID IN (9, 10) AND B.START_DT <= %CurrentDateIn AND B.END_DT > %CurrentDateIn

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.
2 COMPANYID Character(15) VARCHAR2(15) NOT NULL Company ID
3 PERSON_ID_CONT Character(15) VARCHAR2(15) NOT NULL Person ID

Prompt Table: RD_PERSON_NM_VW

4 BO_ID Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID
5 BO_ID_CONTACT Number(31,0) DECIMAL(31) NOT NULL This field indicates the Business Object ID for the contact.
6 START_DT Date(10) DATE Start date field to store start date value.
7 ROLE_TYPE_ID_1 Number(12,0) DECIMAL(12) NOT NULL Role Type ID

Default Value: 8

8 ROLE_TYPE_ID_2 Number(12,0) DECIMAL(12) NOT NULL Role Type ID

Default Value: 2

9 REL_TYPE_ID Number(12,0) DECIMAL(12) NOT NULL Relationship Type ID
10 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.
11 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time