RB_COM_CONT_VW(SQL View) |
Index Back |
---|---|
The Contact Customer viewThis view returns primary contact of the company for Company SES. |
SELECT DISTINCT A.SETID , A.COMPANYID , C.PERSON_ID ,D.BO_NAME_DISPLAY , 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 IN (9 ,10) 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_NAME_DISPLAY | Character(80) | VARCHAR2(80) NOT NULL | Full name of the Business Object |
5 | BO_ID | Signed Number(32,0) | DECIMAL(31) NOT NULL | Business Object ID |
6 | BO_ID_CONTACT | Number(31,0) | DECIMAL(31) NOT NULL | This field indicates the Business Object ID for the contact. |
7 | FIRST_NAME | Character(30) | VARCHAR2(30) NOT NULL | First Name |
8 | LAST_NAME | Character(30) | VARCHAR2(30) NOT NULL | Last Name |
9 | MIDDLE_NAME | Character(30) | VARCHAR2(30) NOT NULL | Middle Name |