RBE_CUST_ADD_VW(SQL View) |
Index Back |
---|---|
Customer Address ViewThis view is used to get the Customer's Primary Address. |
SELECT DISTINCT A.BO_ID , A.ROLE_TYPE_ID , E.ADDRESS1 , E.ADDRESS1_AC , E.ADDRESS2 , E.ADDRESS2_AC , E.ADDRESS3 , E.ADDRESS3_AC , E.ADDRESS4 , E.ADDRESS4_AC , E.CITY , E.CITY_AC , E.COUNTRY , E.STATE , E.POSTAL , %subrec(RB_AUDIT_SBR, A) FROM PS_BO_ROLE A , PS_RD_SITE I , PS_BO_SRCH_ADD E , PS_BO_REL R WHERE E.BO_ID = I.BO_ID AND ((R.ROLE_TYPE_ID_1 = A.ROLE_TYPE_ID AND R.BO_ID_1 = A.BO_ID AND R.ROLE_TYPE_ID_2 = 3 AND I.BO_ID = R.BO_ID_2) OR ( R.ROLE_TYPE_ID_1 = 3 AND R.ROLE_TYPE_ID_2 = A.ROLE_TYPE_ID AND R.BO_ID_2 = A.BO_ID AND I.BO_ID = R.BO_ID_1)) AND R.START_DT <= %CurrentDateIn AND R.END_DT > %CurrentDateIn AND E.BO_CM_USE_TYPE = 'R' AND E.ROLE_TYPE_ID = 3 AND E.PRIMARY_IND = 'Y' AND A.ROLE_TYPE_ID IN (2,9) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BO_ID_CUST | Number(31,0) | DECIMAL(31) NOT NULL | This field stores the Business Object ID for the customer. |
2 | ROLE_TYPE_ID_CUST | Number(12,0) | DECIMAL(12) NOT NULL | Stores ROLE_TYPE_ID for the customer |
3 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
4 | ADDRESS1_AC | Character(55) | VARCHAR2(55) NOT NULL | ADDRESS1_AC |
5 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
6 | ADDRESS2_AC | Character(55) | VARCHAR2(55) NOT NULL | ADDRESS2_AC |
7 | ADDRESS3 | Character(55) | VARCHAR2(55) NOT NULL | Address 3 |
8 | ADDRESS3_AC | Character(55) | VARCHAR2(55) NOT NULL | ADDRESS3_AC |
9 | ADDRESS4 | Character(55) | VARCHAR2(55) NOT NULL | Address 4 |
10 | ADDRESS4_AC | Character(55) | VARCHAR2(55) NOT NULL | Alternate Character Address 4. |
11 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
12 | CITY_AC | Character(30) | VARCHAR2(30) NOT NULL | CITY_AC |
13 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
14 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
15 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
16 | ROW_ADDED_DTTM | DateTime(26) | TIMESTAMP | This is a datetime field for record creation. |
17 | ROW_ADDED_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who added the row. |
18 | ROW_LASTMANT_DTTM | DateTime(26) | TIMESTAMP | The date and time that the row was last updated. |
19 | ROW_LASTMANT_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who last modified the row. |
20 | SYNCID | Number(10,0) | DECIMAL(10) NOT NULL | The Synchronization ID field stores a value generated by the sync processor. The value is used to identify the type of object that the sync processor is about to handle. |
21 | SYNCDTTM | DateTime(26) | TIMESTAMP | Synchronization Last Update Date Time |