BO_REP_PADDR_VW(SQL View) |
Index Back |
---|---|
Contact Primary AddressThis is the Contact Primary Address view. |
SELECT DISTINCT A.BO_ID_2 , A.ROLE_TYPE_ID_2 , A.BO_ID_1 , A.ROLE_TYPE_ID_1 , C.CM_USE_START_DT , C.PROFILE_CM_SEQ , C.CM_USE_END_DT , 1 , C.CM_ID , C.PRIMARY_IND , C.CM_PURPOSE_TYPE_ID , C.PHYSICAL_LOCATION , %subrec(CM_ADDRESS_SBR, C) FROM PS_BO_REL A , PS_BO_REL_CAT_ITEM B , PS_BO_SRCH_ADD C WHERE A.REL_TYPE_ID = B.REL_TYPE_ID AND B.BO_REL_CATEGORY_ID IN (1, 2) AND A.START_DT <= %CurrentDateIn AND A.END_DT > %CurrentDateIn AND A.BO_ID_1 = C.BO_ID AND C.CM_USE_ID = 0 AND C.ROLE_TYPE_ID = 0 AND C.PRIMARY_IND = 'Y' AND A.BO_REL_ID = C.BO_REL_ID AND C.BO_REL_POSITION = 'F' AND C.BO_CM_START_DT <= %CurrentDateIn AND C.BO_CM_END_DT > %CurrentDateIn |
# | 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 | ROLE_TYPE_ID | Number(12,0) | DECIMAL(12) NOT NULL | Role Type ID |
3 | BO_ID_CONTACT | Number(31,0) | DECIMAL(31) NOT NULL | This field indicates the Business Object ID for the contact. |
4 | ROLE_TYPE_ID_CNTCT | Number(12,0) | DECIMAL(12) NOT NULL | Stores ROLE_TYPE_ID for the contact |
5 | CM_USE_START_DT | Date(10) | DATE | Contact Method Use Start Date |
6 | 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. |
7 | CM_USE_END_DT | Date(10) | DATE | End date of a Contact Method Use |
8 | CM_TYPE_ID | Number(6,0) | INTEGER NOT NULL | Contact Method Type ID |
9 | CM_ID | Number(31,0) | DECIMAL(31) NOT NULL | Contact Method ID |
10 | PRIMARY_IND | Character(1) | VARCHAR2(1) NOT NULL |
Flag that indicates whether or not it is Primary
N=No Y=Yes |
11 | CM_PURPOSE_TYPE_ID | Number(6,0) | INTEGER NOT NULL |
Relationship Contact Method Purpose ID
Prompt Table: CM_PURP_TYPE |
12 | PHYSICAL_LOCATION | Character(30) | VARCHAR2(30) NOT NULL | Physical Location (Free-Form) |
13 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL |
Country
Prompt Table: COUNTRY_TBL |
14 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
15 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
16 | ADDRESS3 | Character(55) | VARCHAR2(55) NOT NULL | Address 3 |
17 | ADDRESS4 | Character(55) | VARCHAR2(55) NOT NULL | Address 4 |
18 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
19 | NUM1 | Character(6) | VARCHAR2(6) NOT NULL | Number 1 |
20 | NUM2 | Character(4) | VARCHAR2(4) NOT NULL | Number 2 |
21 | HOUSE_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
House Type
AB=House Boat Reference WW=House Trailer Reference |
22 | ADDR_FIELD1 | Character(2) | VARCHAR2(2) NOT NULL | Address Field 1 |
23 | ADDR_FIELD2 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 2 |
24 | ADDR_FIELD3 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 3 |
25 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
26 | STATE | Character(6) | VARCHAR2(6) NOT NULL |
State
Prompt Table: %EDIT_STATE |
27 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
28 | GEO_CODE | Character(11) | VARCHAR2(11) NOT NULL | Geo Code |
29 | IN_CITY_LIMIT | Character(1) | VARCHAR2(1) NOT NULL |
In City Limit
Y/N Table Edit Default Value: Y |
30 | CROSS_STREET_1 | Character(50) | VARCHAR2(50) NOT NULL | Cross Street of a location |
31 | CROSS_STREET_2 | Character(50) | VARCHAR2(50) NOT NULL | Cross Street of a location |
32 | ADDRESS_SUB_TYPE | Character(4) | VARCHAR2(4) NOT NULL |
Address Sub Type Field
ADDR=Address INT=Intersection Default Value: ADDR |
33 | ADDRESS1_AC | Character(55) | VARCHAR2(55) NOT NULL | ADDRESS1_AC |
34 | ADDRESS3_AC | Character(55) | VARCHAR2(55) NOT NULL | ADDRESS3_AC |
35 | ADDRESS2_AC | Character(55) | VARCHAR2(55) NOT NULL | ADDRESS2_AC |
36 | ADDRESS4_AC | Character(55) | VARCHAR2(55) NOT NULL | Alternate Character Address 4. |
37 | CITY_AC | Character(30) | VARCHAR2(30) NOT NULL | CITY_AC |
38 | REGION_ID | Character(15) | VARCHAR2(15) NOT NULL |
This field stores the region id value.
Prompt Table: RD_REGION_VW |
39 | TIMEZONE | Character(9) | VARCHAR2(9) NOT NULL |
Time Zone
Prompt Table: PSTIMEZONE |
40 | CM_ID_PHONE | Number(31,0) | DECIMAL(31) NOT NULL |
CM_ID_PHONE
Prompt Table: CM_PHONE |
41 | TAX_CD | Character(8) | VARCHAR2(8) NOT NULL | Tax Code |