KEY_PERS_SRCH(SQL View) |
Index Back |
---|---|
Key Person SearchPERS_SRCH_GBL is used as a search view to select person records for you to use when you access a panel. This view shows you records only for persons in departments that your operator class is allowed to access. All PER_ORG Types are returned. Modified to identify Persons included on Talent Pools defined specifically for use with Succession Plans. |
SELECT A.OPRID ,A.ROWSECCLASS ,A.EMPLID ,A.EMPL_RCD ,A.NAME ,A.NAME_DISPLAY_SRCH ,A.LAST_NAME_SRCH ,A.SECOND_LAST_SRCH ,A.FIRST_NAME ,A.LAST_NAME ,A.SECOND_LAST_NAME ,A.NAME_AC ,A.PER_ORG ,A.BUSINESS_UNIT ,A.DEPTID ,A.LOCATION ,A.COMPANY ,A.JOBCODE ,A.SETID_DEPT ,A.SETID_LOCATION ,A.SETID_JOBCODE FROM PS_HR_PERS_SRCH A ,PS_HR_TPOOL_MBR B ,PS_HR_TPOOL C ,PS_HR_TP_CAT_TBL D WHERE A.EMPLID = B.EMPLID AND A.EMPL_RCD = B.EMPL_RCD AND A.HR_STATUS = 'A' AND C.HR_TP_ID = B.HR_TP_ID AND C.EFFDT = B.EFFDT AND B.STATUS = 'A' AND C.STATUS = 'A' AND C.HR_TP_CAT_ID = D.HR_TP_CAT_ID AND D.STATUS = 'A' AND D.HR_SP_KEY_SRCH_FLG = 'Y' AND D.EFFDT = ( SELECT MAX(D1.EFFDT) FROM PS_HR_TP_CAT_TBL D1 WHERE D1.HR_TP_CAT_ID = D.HR_TP_CAT_ID AND D1.EFFDT <= %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
2 | ROWSECCLASS | Character(30) | VARCHAR2(30) NOT NULL | The class used to determine row level security |
3 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
4 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Record |
5 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
6 | NAME_DISPLAY_SRCH | Character(50) | VARCHAR2(50) NOT NULL | Uppercase version of Name to improve performance on searches. |
7 | LAST_NAME_SRCH | Character(30) | VARCHAR2(30) NOT NULL | Last Name |
8 | SECOND_LAST_SRCH | Character(30) | VARCHAR2(30) NOT NULL | Second Last Name |
9 | FIRST_NAME | Character(30) | VARCHAR2(30) NOT NULL | First Name |
10 | LAST_NAME | Character(30) | VARCHAR2(30) NOT NULL | Last Name |
11 | SECOND_LAST_NAME | Character(30) | VARCHAR2(30) NOT NULL | Second Last Name |
12 | NAME_AC | Character(50) | VARCHAR2(50) NOT NULL | Alternate Character Name |
13 | PER_ORG | Character(3) | VARCHAR2(3) NOT NULL |
Defines the Organizational Relationship(s) that a Person has to the Organization. These are Employee, Contingent Worker, and Persons of Interest.
CWR=Contingent Worker EMP=Employee POI=Person of Interest |
14 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Default Value: OPR_DEF_TBL_HR.BUSINESS_UNIT Prompt Table: BUS_UNIT_TBL_HR |
15 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL |
Department
Prompt Table: DEPT_TBL |
16 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL |
Location Code
Prompt Table: LOCATION_TBL |
17 | COMPANY | Character(3) | VARCHAR2(3) NOT NULL |
Company
Prompt Table: COMPANY_TBL |
18 | JOBCODE | Character(6) | VARCHAR2(6) NOT NULL |
Job Code
Prompt Table: JOBCODE_TBL |
19 | SETID_DEPT | Character(5) | VARCHAR2(5) NOT NULL | Department Set ID |
20 | SETID_LOCATION | Character(5) | VARCHAR2(5) NOT NULL | Location Set ID |
21 | SETID_JOBCODE | Character(5) | VARCHAR2(5) NOT NULL | Job Code Set ID |