BO_PRIM_CM_VW_B

(SQL View)
Index Back

Contact Method

This is the primary contact method view.

SELECT B.CM_ID , A.BO_ID , C.CM_TYPE_ID , MAX(B.PROFILE_CM_SEQ) , %subrec(CM_ADDRESS_SBR, C) , %subrec(CM_PHON_PGR_SBR, C) , %subrec(CM_EMAIL_SBR, C) , %subrec(GEO_CODE_SBR, C) FROM PS_BO_CM_USE A , PS_BO_CM B , PS_CM C WHERE A.PROFILE_CM_SEQ = B.PROFILE_CM_SEQ AND A.CM_USE_START_DT = B.BO_CM_START_DT AND %CurrentDateIn >= CM_USE_START_DT AND %CurrentDateIn < CM_USE_END_DT AND %CurrentDateIn >= BO_CM_START_DT AND %CurrentDateIn < BO_CM_END_DT AND B.CM_ID = C.CM_ID AND A.PRIMARY_IND = 'Y' AND A.BO_ID = B.BO_ID GROUP BY A.BO_ID, B.CM_ID, C.CM_TYPE_ID, %subrec(CM_ADDRESS_SBR, C) , %subrec(CM_PHON_PGR_SBR, C) , %subrec(CM_EMAIL_SBR, C) , %subrec(GEO_CODE_SBR, C)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 CM_ID Number(31,0) DECIMAL(31) NOT NULL Contact Method ID
2 BO_ID Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID
3 CM_TYPE_ID Number(6,0) INTEGER NOT NULL Contact Method Type ID

Prompt Table: CM_TYPE

4 PROFILE_CM_SEQ Number(31,0) DECIMAL(31) NOT NULL The Contact Method Profile ID is a key field that is used to reference the details of a Contact Method in various CM tables.
5 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country

Prompt Table: COUNTRY_TBL

6 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
7 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
8 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
9 ADDRESS4 Character(55) VARCHAR2(55) NOT NULL Address 4
10 CITY Character(30) VARCHAR2(30) NOT NULL City
11 NUM1 Character(6) VARCHAR2(6) NOT NULL Number 1
12 NUM2 Character(4) VARCHAR2(4) NOT NULL Number 2
13 HOUSE_TYPE Character(2) VARCHAR2(2) NOT NULL House Type
AB=House Boat Reference
WW=House Trailer Reference
14 ADDR_FIELD1 Character(2) VARCHAR2(2) NOT NULL Address Field 1
15 ADDR_FIELD2 Character(4) VARCHAR2(4) NOT NULL Address Field 2
16 ADDR_FIELD3 Character(4) VARCHAR2(4) NOT NULL Address Field 3
17 COUNTY Character(30) VARCHAR2(30) NOT NULL County
18 STATE Character(6) VARCHAR2(6) NOT NULL State

Prompt Table: %EDIT_STATE

19 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
20 GEO_CODE Character(11) VARCHAR2(11) NOT NULL Geo Code
21 IN_CITY_LIMIT Character(1) VARCHAR2(1) NOT NULL In City Limit

Y/N Table Edit

Default Value: Y

22 CROSS_STREET_1 Character(50) VARCHAR2(50) NOT NULL Cross Street of a location
23 CROSS_STREET_2 Character(50) VARCHAR2(50) NOT NULL Cross Street of a location
24 ADDRESS_SUB_TYPE Character(4) VARCHAR2(4) NOT NULL Address Sub Type Field
ADDR=Address
INT=Intersection

Default Value: ADDR

25 ADDRESS1_AC Character(55) VARCHAR2(55) NOT NULL ADDRESS1_AC
26 ADDRESS3_AC Character(55) VARCHAR2(55) NOT NULL ADDRESS3_AC
27 ADDRESS2_AC Character(55) VARCHAR2(55) NOT NULL ADDRESS2_AC
28 ADDRESS4_AC Character(55) VARCHAR2(55) NOT NULL Alternate Character Address 4.
29 CITY_AC Character(30) VARCHAR2(30) NOT NULL CITY_AC
30 REGION_ID Character(15) VARCHAR2(15) NOT NULL This field stores the region id value.

Prompt Table: RD_REGION_VW

31 TIMEZONE Character(9) VARCHAR2(9) NOT NULL Time Zone

Prompt Table: PSTIMEZONE

32 CM_ID_PHONE Number(31,0) DECIMAL(31) NOT NULL CM_ID_PHONE

Prompt Table: CM_PHONE

33 TAX_CD Character(8) VARCHAR2(8) NOT NULL Tax Code
34 COUNTRY_CODE Character(3) VARCHAR2(3) NOT NULL This field stores the Country Code values.
35 PHONE Character(24) VARCHAR2(24) NOT NULL This field stores the Telephone number.
36 EXTENSION Character(6) VARCHAR2(6) NOT NULL This field stores the Phone extension.
37 PASSWORD Character(254) VARCHAR2(254) NOT NULL Password
38 EMAIL_ADDR Character(70) VARCHAR2(70) NOT NULL Email address to store the address of email.
39 EMAIL_DOMAIN Character(50) VARCHAR2(50) NOT NULL Email Domain
40 HTML_FLAG Character(1) VARCHAR2(1) NOT NULL Field to determine if an Email Address can receive HTML Based Email.
N=No
Y=Yes
41 LATITUDE Signed Number(32,20) DECIMAL(30,20) NOT NULL LATITUDE
42 LONGITUDE Signed Number(32,20) DECIMAL(30,20) NOT NULL LONGITUDE
43 RD_ADDR_INTERSECT Character(1) VARCHAR2(1) NOT NULL This field is used to determine if the associated address is at an intersection or not.
N=No
Y=Yes

Y/N Table Edit

Default Value: N