RD_PRSN_ROLES

(SQL View)
Index Back

RD_PRSN_ROLES

This view have primary name and role information. Used by basic search view and display result for person search. NOTE: It is business requirement that we DO NOT put START_DT and END_DT logic for checking the roles. That's an inactive Consumer with Consumer Role ended still need to be searchable and displayed in Configurable Search result.

SELECT A.PERSON_ID , B.FIRST_NAME , B.LAST_NAME , B.NAME_SUFFIX , B.NAME_AC , B.BO_NAME_DISPLAY , A.TITLE , A.EMPLID , A.SETID , A.BO_ID , CASE WHEN EXISTS ( SELECT 'X' FROM PS_BO_ROLE C WHERE C.BO_ID = A.BO_ID AND C.ROLE_TYPE_ID = 8) THEN 'Y' ELSE 'N' END , CASE WHEN EXISTS ( SELECT 'X' FROM PS_BO_ROLE C WHERE C.BO_ID = A.BO_ID AND C.ROLE_TYPE_ID = 9) THEN 'Y' ELSE 'N' END , CASE WHEN EXISTS ( SELECT 'X' FROM PS_BO_ROLE C WHERE C.BO_ID = A.BO_ID AND C.ROLE_TYPE_ID = 4) THEN 'Y' ELSE 'N' END , CASE WHEN EXISTS ( SELECT 'X' FROM PS_BO_ROLE C WHERE C.BO_ID = A.BO_ID AND C.ROLE_TYPE_ID = 88) THEN 'Y' ELSE 'N' END , A.MARKET , A.SYNCID FROM PS_RD_PERSON A , PS_BO_NAME B WHERE A.BO_ID = B.BO_ID AND B.PRIMARY_IND = 'Y'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 PERSON_ID Character(15) VARCHAR2(15) NOT NULL Person ID
2 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
3 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
4 NAME_SUFFIX Character(15) VARCHAR2(15) NOT NULL Name Suffix
5 BO_NAME_AC Character(50) VARCHAR2(50) NOT NULL Name Description of Business Object
6 BO_NAME_DISPLAY Character(80) VARCHAR2(80) NOT NULL Full name of the Business Object
7 TITLE Character(35) VARCHAR2(35) NOT NULL Title
8 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
9 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.
10 BO_ID Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID
11 CONTACT_FLAG Character(1) VARCHAR2(1) NOT NULL An attribute that describes the specific purpose of a given bank/counterparty contact person. It is also used to indicate whether a person has a Contact role.
E=External Contact
I=Internal Corporate Contact
12 CONSUMER_FLAG Character(1) VARCHAR2(1) NOT NULL To indicate whether a person has a consumer role.
13 WORKER_FLAG Character(1) VARCHAR2(1) NOT NULL A flag indicate whether this person has a worker role.
14 POI_FLAG Character(1) VARCHAR2(1) NOT NULL A flag indicate whether this person has a POI role.
15 MARKET Character(3) VARCHAR2(3) NOT NULL Market
16 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.