RIM_CNTACC_VW

(SQL View)
Index Back

Contact Account View

Rim user contact account view.

SELECT DISTINCT PER.SETID , PER.BO_ID , REL.BO_ID_2 , NAM.BO_NAME , NAM.BO_NAME_DISPLAY , CASE WHEN REL_TYPE_ID = 9 THEN 'Y' ELSE 'N' END , REL.REL_TYPE_ID , %subrec(RB_AUDIT_SBR, PER) FROM PS_RD_PERSON PER , PS_BO_NAME NAM , PS_BO_REL REL WHERE PER.BO_ID = NAM.BO_ID AND PER.BO_ID = REL.BO_ID_1 AND ((REL.REL_TYPE_ID = 9) OR (REL.REL_TYPE_ID = 10) OR (REL.REL_TYPE_ID = 31) OR (REL.REL_TYPE_ID = 32)) AND REL.START_DT <= %CurrentDateIn AND REL.END_DT > %CurrentDateIn

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.
2 BO_ID_PERSON Number(31,0) DECIMAL(31) NOT NULL Business Object ID
3 BO_ID_CUST Number(31,0) DECIMAL(31) NOT NULL This field stores the Business Object ID for the customer.
4 BO_NAME Character(50) VARCHAR2(50) NOT NULL Name Description of Business Object
5 BO_NAME_DISPLAY Character(80) VARCHAR2(80) NOT NULL Full name of the Business Object
6 PRIMARY_IND Character(1) VARCHAR2(1) NOT NULL Flag that indicates whether or not it is Primary
N=No
Y=Yes
7 REL_TYPE_ID Number(12,0) DECIMAL(12) NOT NULL Relationship Type ID
8 ROW_ADDED_DTTM DateTime(26) TIMESTAMP This is a datetime field for record creation.
9 ROW_ADDED_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who added the row.
10 ROW_LASTMANT_DTTM DateTime(26) TIMESTAMP The date and time that the row was last updated.
11 ROW_LASTMANT_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who last modified the row.
12 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.
13 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time