COM_PRI_CONT_VW

(SQL View)
Index Back

The Contact Customer view

This view returns primary contact of the company for Company SES.

SELECT A.SETID , A.COMPANYID , C.PERSON_ID , A.BO_ID , C.BO_ID ,D.FIRST_NAME ,D.LAST_NAME ,D.MIDDLE_NAME FROM PS_RD_COMPANY A , PS_BO_REL B , PS_RD_PERSON C ,PS_BO_NAME D WHERE A.BO_ID = B.BO_ID_2 AND B.BO_ID_1 = C.BO_ID AND B.ROLE_TYPE_ID_2 = 2 AND B.REL_TYPE_ID =9 AND B.START_DT <= %CurrentDateIn AND B.END_DT > %CurrentDateIn AND D.BO_ID=C.BO_ID AND D.PRIMARY_IND='Y'

# 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 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
7 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
8 MIDDLE_NAME Character(30) VARCHAR2(30) NOT NULL Middle Name