RSFM_COMPCNT_VW

(SQL View)
Index Back

Competitor Contact (Mobile)

This view returns all the Contacts for the Competitor(Company).

SELECT B.BO_ID_2 , A.PERSON_ID , N.BO_NAME_DISPLAY , C.FIRST_NAME , C.LAST_NAME , C.BO_NAME , A.BO_ID , B.START_DT , B.ROLE_TYPE_ID_1 , B.ROLE_TYPE_ID_2 , B.REL_TYPE_ID , A.SYNCID , A.SYNCDTTM FROM PS_RD_PERSON A , PS_BO_REL B , PS_BO_NAME C , PS_BO_NAME N WHERE A.BO_ID = B.BO_ID_1 AND A.BO_ID = C.BO_ID AND B.BO_ID_2 = N.BO_ID AND B.ROLE_TYPE_ID_1 = 8 AND B.ROLE_TYPE_ID_2 IN (10, 2) AND B.REL_TYPE_ID IN (19, 20) AND B.START_DT <= %CurrentDateIn AND B.END_DT > %CurrentDateIn AND C.PRIMARY_IND = 'Y'

# 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.

Prompt Table: RB_BO_CUST_VW

2 CONTACT_ID Character(15) VARCHAR2(15) NOT NULL Contact Identifier for Treasury Contacts
3 BO_NAME_DISPLAY Character(80) VARCHAR2(80) NOT NULL Full name of the Business Object
4 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
5 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
6 BO_NAME Character(50) VARCHAR2(50) NOT NULL Name Description of Business Object
7 BO_ID_CNTCT Number(31,0) DECIMAL(31) NOT NULL This field represents the business object ID for a Contact
8 START_DT Date(10) DATE Start date field to store start date value.
9 ROLE_TYPE_ID_CNTCT Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the contact
10 ROLE_TYPE_ID_CUST Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the customer
11 REL_TYPE_ID Number(12,0) DECIMAL(12) NOT NULL Relationship Type ID
12 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.
13 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time