RB_CUST_360_VW

(SQL View)
Index Back

RB_CUST_360_VW

RB_CUST_360_VW SELECT DISTINCT A.BO_ID , A.ROLE_TYPE_ID , C.BO_NAME , B.BO_ID_CONTACT , B.ROLE_TYPE_ID_CNTCT , D.BO_NAME , G.ADDRESS1 , G.CITY , G.COUNTRY , G.STATE , G.POSTAL , %subrec(RB_AUDIT_SBR, A) FROM PS_BO_ROLE A LEFT OUTER JOIN PS_BO_ROLE_CNTCT_V B ON B.BO_ID = A.BO_ID AND B.START_DT <= %CurrentDateIn AND B.END_DT > %CurrentDateIn LEFT OUTER JOIN PS_BO_NAME D ON D.BO_ID = B.BO_ID_CONTACT AND D.PRIMARY_IND = 'Y' , PS_CM G , PS_BO_CM E , PS_BO_CM_USE F , PS_BO_NAME C WHERE C.BO_ID = A.BO_ID AND C.PRIMARY_IND = 'Y' AND G.CM_ID = E.CM_ID AND E.CM_TYPE_ID = 1 AND E.BO_CM_START_DT <= %CurrentDateIn AND E.BO_CM_END_DT > %CurrentDateIn AND E.BO_ID = F.BO_ID AND E.PROFILE_CM_SEQ = F.PROFILE_CM_SEQ AND F.BO_CM_USE_TYPE = 'R' AND F.PRIMARY_IND = 'Y' AND F.CM_USE_START_DT <= %CurrentDateIn AND F.CM_USE_END_DT > %CurrentDateIn AND E.BO_ID = A.BO_ID AND A.ROLE_TYPE_ID IN (2,9) AND F.ROLE_TYPE_ID = A.ROLE_TYPE_ID SELECT DISTINCT A.BO_ID , A.ROLE_TYPE_ID , C.BO_NAME_DISPLAY , B.BO_ID_CONTACT , B.ROLE_TYPE_ID_CNTCT , %subrec(RB_AUDIT_SBR, A) FROM PS_BO_ROLE A LEFT OUTER JOIN PS_BO_ROLE_CNTCT_V B ON B.BO_ID = A.BO_ID AND B.ROLE_TYPE_ID = A.ROLE_TYPE_ID AND B.START_DT <= %CurrentDateIn AND B.END_DT > %CurrentDateIn , PS_BO_NAME C WHERE C.BO_ID = A.BO_ID AND A.ROLE_TYPE_ID IN (2,9)

SELECT A.BO_ID , A.ROLE_TYPE_ID , M.BO_NAME_DISPLAY , B.SETID , B.CUST_ID , %subrec(RB_AUDIT_SBR,A) FROM PS_BO_ROLE A , PS_BC B , PS_BO_NAME_PRIM_VW M WHERE A.BO_ID = M.BO_ID AND B.BO_ID = A.BO_ID AND A.ROLE_TYPE_ID IN (2,9,3)

# 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 BO_NAME_DISPLAY Character(80) VARCHAR2(80) NOT NULL Full name of the Business Object
4 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.
5 CUST_ID Character(15) VARCHAR2(15) NOT NULL Customer ID
6 ROW_ADDED_DTTM DateTime(26) TIMESTAMP This is a datetime field for record creation.
7 ROW_ADDED_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who added the row.
8 ROW_LASTMANT_DTTM DateTime(26) TIMESTAMP The date and time that the row was last updated.
9 ROW_LASTMANT_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who last modified the row.
10 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.
11 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time