RDH_ACCTM_HST_V(SQL View) |
Index Back |
---|---|
Account Team History viewView used to return account team members based on BO Merge ID. |
SELECT A.MERGE_ID , 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(RDH_ACCTM_HIST) A , %Table(BO_REL) REL , %Table(RD_ACCT_REL_VW) B WHERE A.BO_REL_ID = REL.BO_REL_ID AND 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 | MERGE_ID | Number(15,0) | DECIMAL(15) NOT NULL | CDH Batch Merge ID |
2 | REL_TYPE_ID | Number(12,0) | DECIMAL(12) NOT NULL | Relationship Type ID |
3 | BO_ID_REP | Number(31,0) | DECIMAL(31) NOT NULL | Business Object ID |
4 | ROLE_TYPE_ID_REP | Number(12,0) | DECIMAL(12) NOT NULL | Rep Role Type ID |
5 | 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 |
6 | ROLE_TYPE_ID_ACCT | Number(12,0) | DECIMAL(12) NOT NULL | Account Role Type ID |
7 | BO_REL_ID | Signed Number(32,0) | DECIMAL(31) NOT NULL | Relationship ID of a Business Object |
8 | START_DT | Date(10) | DATE | Start date field to store start date value. |
9 | END_DT | Date(10) | DATE | This field stores the end date values. |
10 | ACCT_OWNER | Character(1) | VARCHAR2(1) NOT NULL |
Account Team Owners....................
N=No Y=Yes |
11 | ROW_ADDED_DTTM | DateTime(26) | TIMESTAMP | This is a datetime field for record creation. |
12 | ROW_ADDED_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who added the row. |
13 | ROW_LASTMANT_DTTM | DateTime(26) | TIMESTAMP | The date and time that the row was last updated. |
14 | ROW_LASTMANT_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who last modified the row. |
15 | 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. |
16 | SYNCDTTM | DateTime(26) | TIMESTAMP | Synchronization Last Update Date Time |