RT_OM_1PRADR_VW

(SQL View)
Index Back

Telemarketing primary address

Telemarketing - find primary address for role type

SELECT A.BO_ID , A.ROLE_TYPE_ID , A.ADDRESS1 , A.CITY , A.STATE , A.POSTAL , A.PROFILE_CM_SEQ FROM PS_BO_ROLECM_PADDR A WHERE A.BO_CM_END_DT = ( SELECT MAX(BO_CM_END_DT) FROM PS_BO_ROLECM_PADDR WHERE BO_ID = A.BO_ID AND ROLE_TYPE_ID = A.ROLE_TYPE_ID)

# 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 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
4 CITY Character(30) VARCHAR2(30) NOT NULL City
5 STATE Character(6) VARCHAR2(6) NOT NULL State
6 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
7 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.