RSF_BO_REL_CM_V

(SQL View)
Index Back

BO Rel Types

View of all BO Relationship Types for all Contact Methods

SELECT DISTINCT R.REL_TYPE_ID , R.BO_ID_2 , R.BO_ID_1 , U.PRIMARY_IND , A.PROFILE_CM_SEQ , B.CM_ID , A.CM_TYPE_ID , A.CM_PURPOSE_TYPE_ID , %subrec(CM_PHON_PGR_SBR , B) , %subrec(CM_EMAIL_SBR , B) , %subrec(CM_ADDRESS_SBR , B) FROM PS_BO_CM A , PS_CM B ,PS_BO_REL R , PS_BO_CM_USE U WHERE R.REL_TYPE_ID IN (9,10,11,12,13,14) AND A.BO_ID = R.BO_ID_1 AND R.BO_REL_ID = U.BO_REL_ID AND A.PROFILE_CM_SEQ = U.PROFILE_CM_SEQ AND B.CM_ID = A.CM_ID AND A.BO_CM_START_DT <= %CurrentDateIn AND A.BO_CM_END_DT > %CurrentDateIn AND A.BO_ID = U.BO_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 REL_TYPE_ID Number(12,0) DECIMAL(12) NOT NULL Relationship Type ID
2 BO_ID Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID
3 BO_ID_CONTACT Number(31,0) DECIMAL(31) NOT NULL This field indicates the Business Object ID for the contact.
4 PRIMARY_IND Character(1) VARCHAR2(1) NOT NULL Flag that indicates whether or not it is Primary
N=No
Y=Yes
5 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.
6 CM_ID Number(31,0) DECIMAL(31) NOT NULL Contact Method ID
7 CM_TYPE_ID Number(6,0) INTEGER NOT NULL Contact Method Type ID
8 CM_PURPOSE_TYPE_ID Number(6,0) INTEGER NOT NULL Relationship Contact Method Purpose ID
9 COUNTRY_CODE Character(3) VARCHAR2(3) NOT NULL This field stores the Country Code values.
10 PHONE Character(24) VARCHAR2(24) NOT NULL This field stores the Telephone number.
11 EXTENSION Character(6) VARCHAR2(6) NOT NULL This field stores the Phone extension.
12 PASSWORD Character(254) VARCHAR2(254) NOT NULL Password
13 EMAIL_ADDR Character(70) VARCHAR2(70) NOT NULL Email address to store the address of email.
14 EMAIL_DOMAIN Character(50) VARCHAR2(50) NOT NULL Email Domain
15 HTML_FLAG Character(1) VARCHAR2(1) NOT NULL Field to determine if an Email Address can receive HTML Based Email.
N=No
Y=Yes
16 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country

Prompt Table: COUNTRY_TBL

17 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
18 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
19 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
20 ADDRESS4 Character(55) VARCHAR2(55) NOT NULL Address 4
21 CITY Character(30) VARCHAR2(30) NOT NULL City
22 NUM1 Character(6) VARCHAR2(6) NOT NULL Number 1
23 NUM2 Character(4) VARCHAR2(4) NOT NULL Number 2
24 HOUSE_TYPE Character(2) VARCHAR2(2) NOT NULL House Type
AB=House Boat Reference
WW=House Trailer Reference
25 ADDR_FIELD1 Character(2) VARCHAR2(2) NOT NULL Address Field 1
26 ADDR_FIELD2 Character(4) VARCHAR2(4) NOT NULL Address Field 2
27 ADDR_FIELD3 Character(4) VARCHAR2(4) NOT NULL Address Field 3
28 COUNTY Character(30) VARCHAR2(30) NOT NULL County
29 STATE Character(6) VARCHAR2(6) NOT NULL State

Prompt Table: %EDIT_STATE

30 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
31 GEO_CODE Character(11) VARCHAR2(11) NOT NULL Geo Code
32 IN_CITY_LIMIT Character(1) VARCHAR2(1) NOT NULL In City Limit

Y/N Table Edit

Default Value: Y

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

Default Value: ADDR

36 ADDRESS1_AC Character(55) VARCHAR2(55) NOT NULL ADDRESS1_AC
37 ADDRESS3_AC Character(55) VARCHAR2(55) NOT NULL ADDRESS3_AC
38 ADDRESS2_AC Character(55) VARCHAR2(55) NOT NULL ADDRESS2_AC
39 ADDRESS4_AC Character(55) VARCHAR2(55) NOT NULL Alternate Character Address 4.
40 CITY_AC Character(30) VARCHAR2(30) NOT NULL CITY_AC
41 REGION_ID Character(15) VARCHAR2(15) NOT NULL This field stores the region id value.

Prompt Table: RD_REGION_VW

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

Prompt Table: PSTIMEZONE

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

Prompt Table: CM_PHONE

44 TAX_CD Character(8) VARCHAR2(8) NOT NULL Tax Code