BC_CNTCT_NME_VW

(SQL View)
Index Back

BC Contact with names

This view expands on BO_CNTCT_BC_VW to include contact name fields and contact bill/ship/sold roles.

SELECT A.BO_ID , B.BO_ID , A.ROLE_TYPE_ID_CUST , A.ROLE_TYPE_ID_CNTCT , A.BO_REL_ID , A.REL_TYPE_ID , B.PERSON_ID , C.SEQ_NBR , C.NAME , %subrec(NAMEGBL_SBR, C) , C.PRIMARY_IND FROM PS_BO_CNTCT_BC_VW A , PS_RD_PERSON B , PS_BO_NAME C WHERE A.BO_ID_CONTACT = B.BO_ID AND B.BO_ID = C.BO_ID AND C.PRIMARY_IND = 'Y'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BO_ID Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID
2 BO_ID_CONTACT Number(31,0) DECIMAL(31) NOT NULL This field indicates the Business Object ID for the contact.
3 ROLE_TYPE_ID_CUST Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the customer
4 ROLE_TYPE_ID_CNTCT Number(12,0) DECIMAL(12) NOT NULL Stores ROLE_TYPE_ID for the contact
5 BO_REL_ID Signed Number(32,0) DECIMAL(31) NOT NULL Relationship ID of a Business Object
6 REL_TYPE_ID Number(12,0) DECIMAL(12) NOT NULL Relationship Type ID
7 PERSON_ID Character(15) VARCHAR2(15) NOT NULL Person ID
8 SEQ_NBR Number(15,0) DECIMAL(15) NOT NULL Sequence Number
9 CONTACT_NAME Character(50) VARCHAR2(50) NOT NULL The individual contact name associated with a given bank/counterparty.
10 COUNTRY_NM_FORMAT Character(3) VARCHAR2(3) NOT NULL This is the country name format field.

Prompt Table: COUNTRY_TBL

11 NAME Character(50) VARCHAR2(50) NOT NULL Name
12 NAME_AC Character(50) VARCHAR2(50) NOT NULL Name (Alternate Character)
13 NAME_INITIALS Character(6) VARCHAR2(6) NOT NULL Name Initials
14 NAME_PREFIX Character(4) VARCHAR2(4) NOT NULL Name Prefix
15 NAME_SUFFIX Character(15) VARCHAR2(15) NOT NULL Name Suffix
16 NAME_ROYAL_PREFIX Character(15) VARCHAR2(15) NOT NULL Name Royal Prefix
17 NAME_ROYAL_SUFFIX Character(15) VARCHAR2(15) NOT NULL Name Royal Suffix
18 NAME_TITLE Character(30) VARCHAR2(30) NOT NULL Title
19 LAST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL Last Name
20 FIRST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL First Name
21 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
22 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
23 MIDDLE_NAME Character(30) VARCHAR2(30) NOT NULL Middle Name
24 SECOND_LAST_NAME Character(30) VARCHAR2(30) NOT NULL Second Last Name
25 SECOND_LAST_SRCH Character(30) VARCHAR2(30) NOT NULL Second Name
26 PREF_FIRST_NAME Character(30) VARCHAR2(30) NOT NULL PREF_FIRST_NAME field is used to identify the employees preferred first name
27 PRIMARY_IND Character(1) VARCHAR2(1) NOT NULL Flag that indicates whether or not it is Primary
N=No
Y=Yes