RD_ACCTM_ALL_VW

(SQL View)
Index Back

Account Team view

View used with to return active as well as inactive account team members.

SELECT REL.REL_TYPE_ID , REL.BO_ID_1 , REL.ROLE_TYPE_ID_1 , REL.BO_ID_2 , REL.ROLE_TYPE_ID_2 , REL.BO_REL_ID , REL.START_DT , REL.END_DT , B.ACCT_OWNER , %subrec(RB_AUDIT_SBR, REL) FROM %Table(BO_REL) REL , %Table(RD_ACCT_REL_VW) B WHERE REL.REL_TYPE_ID = B.REL_TYPE_ID AND EXISTS ( SELECT 'X' FROM %Table(BO_REL_CAT_ITEM) CAT WHERE BO_REL_CATEGORY_ID IN (19, 20) AND REL.REL_TYPE_ID = CAT.REL_TYPE_ID)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 REL_TYPE_ID Number(12,0) DECIMAL(12) NOT NULL Relationship Type ID
2 BO_ID_REP Number(31,0) DECIMAL(31) NOT NULL Business Object ID
3 ROLE_TYPE_ID_REP Number(12,0) DECIMAL(12) NOT NULL Rep Role Type ID
4 BO_ID_ACCOUNT Number(31,0) DECIMAL(31) NOT NULL This is the field used in the work record to hold the account's BO Id
5 ROLE_TYPE_ID_ACCT Number(12,0) DECIMAL(12) NOT NULL Account Role Type ID
6 BO_REL_ID Signed Number(32,0) DECIMAL(31) NOT NULL Relationship ID of a Business Object
7 START_DT Date(10) DATE Start date field to store start date value.
8 END_DT Date(10) DATE This field stores the end date values.
9 ACCT_OWNER Character(1) VARCHAR2(1) NOT NULL Account Team Owners....................
N=No
Y=Yes
10 ROW_ADDED_DTTM DateTime(26) TIMESTAMP This is a datetime field for record creation.
11 ROW_ADDED_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who added the row.
12 ROW_LASTMANT_DTTM DateTime(26) TIMESTAMP The date and time that the row was last updated.
13 ROW_LASTMANT_OPRID Character(30) VARCHAR2(30) NOT NULL ID of user who last modified the row.
14 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.
15 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time