FO_EMP_SRCH_VW(SQL View) |
Index Back |
---|---|
Staffing Applicant Search RecStaffing Front Office Employee Search Record |
SELECT A.CANDIDATE_ID ,SEC.ROWSECCLASS ,SEC.ACCESS_CD ,A.NAME ,A.FIRST_NAME ,A.LAST_NAME ,A.FIRST_NAME_SRCH ,A.LAST_NAME_SRCH ,MIN(B.EMPL_RCD) ,B.SETID_DEPT ,B.DEPTID ,A.PER_STATUS ,B.EMPL_STATUS ,A.OPRID ,A.FO_BRANCH ,A.CITY ,A.STATE ,A.POSTAL ,A.PHONE FROM PS_FO_CANDIDATE_W A , PS_JOB B ,PS_SCRTY_TBL_DEPT SEC WHERE A.CANDIDATE_TYPE = 'E' AND A.CANDIDATE_ID = B.EMPLID AND (B.EFFDT =( SELECT MAX(B1.EFFDT) FROM PS_JOB B1 WHERE B1.EMPLID = B.EMPLID AND B1.EMPL_RCD = B.EMPL_RCD AND B1.EFFDT <= %CurrentDateIn) OR B.EFFDT = ( SELECT MIN(B3.EFFDT) FROM PS_JOB B3 WHERE B3.EMPLID = B.EMPLID AND B3.EMPL_RCD = B.EMPL_RCD AND B3.EFFDT > %CurrentDateIn) ) AND B.EFFSEQ = ( SELECT MAX(B2.EFFSEQ) FROM PS_JOB B2 WHERE B.EMPLID = B2.EMPLID AND B.EMPL_RCD = B2.EMPL_RCD AND B.EFFDT = B2.EFFDT) AND SEC.ACCESS_CD='Y' AND EXISTS ( SELECT 'X' FROM PSTREEDEFN TD ,PSTREENODE TN ,PSTREELEAF TL WHERE SEC.SETID = A.SETID_DEPT AND TD.SETID = SEC.SETID AND TD.SETCNTRLVALUE = ' ' AND TD.TREE_NAME ='DEP_SECURITY' AND TD.EFFDT = SEC.TREE_EFFDT AND TD.EFF_STATUS = 'A' AND TN.SETID = TD.SETID AND TN.SETCNTRLVALUE = TD.SETCNTRLVALUE AND TN.TREE_NAME = TD.TREE_NAME AND TN.EFFDT = TD.EFFDT AND TL.SETID = TN.SETID AND TL.SETCNTRLVALUE = TN.SETCNTRLVALUE AND TL.TREE_NAME = TN.TREE_NAME AND TL.EFFDT = TN.EFFDT AND A.DEPTID BETWEEN TL.RANGE_FROM AND TL.RANGE_TO AND TL.TREE_NODE_NUM BETWEEN TN.TREE_NODE_NUM AND TN.TREE_NODE_NUM_END AND TN.TREE_NODE = SEC.DEPTID AND TN.TREE_NODE_NUM BETWEEN SEC.TREE_NODE_NUM AND SEC.TREE_NODE_NUM_END AND NOT EXISTS ( SELECT 'X' FROM PS_SCRTY_TBL_DEPT SEC2 WHERE SEC.ROWSECCLASS = SEC2.ROWSECCLASS AND SEC.SETID = SEC2.SETID AND SEC.TREE_NODE_NUM <> SEC2.TREE_NODE_NUM AND TN.TREE_NODE_NUM BETWEEN SEC2.TREE_NODE_NUM AND SEC2.TREE_NODE_NUM_END)) GROUP BY A.CANDIDATE_ID ,SEC.ROWSECCLASS ,SEC.ACCESS_CD ,A.NAME ,A.FIRST_NAME ,A.LAST_NAME ,A.FIRST_NAME_SRCH ,A.LAST_NAME_SRCH ,B.SETID_DEPT ,B.DEPTID ,A.PER_STATUS ,B.EMPL_STATUS ,A.OPRID ,A.FO_BRANCH ,A.CITY ,A.STATE ,A.POSTAL ,A.PHONE |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | ROWSECCLASS | Character(30) | VARCHAR2(30) NOT NULL | The class used to determine row level security |
3 | ACCESS_CD | Character(1) | VARCHAR2(1) NOT NULL |
Access Code
N=No Access R=Read Only Access Y=Read/Write Access |
4 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
5 | FIRST_NAME | Character(30) | VARCHAR2(30) NOT NULL | First Name |
6 | LAST_NAME | Character(30) | VARCHAR2(30) NOT NULL | Last Name |
7 | FIRST_NAME_SRCH | Character(30) | VARCHAR2(30) NOT NULL | First Name |
8 | LAST_NAME_SRCH | Character(30) | VARCHAR2(30) NOT NULL | Last Name |
9 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Rcd Nbr |
10 | SETID_DEPT | Character(5) | VARCHAR2(5) NOT NULL |
Department SetID
Prompt Table: SETID_TBL |
11 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL |
Department
Prompt Table: FO_DEPT_TBL_VW2 |
12 | PER_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Personnel Status
E=Employee N=Non-Employee |
13 | EMPL_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Employee Status
A=Active D=Deceased I=Inactive L=Leave of Absence P=Leave With Pay Q=Retired With Pay R=Retired S=Suspended T=Terminated U=Terminated With Pay V=Terminated Pension Pay Out W=Short Work Break X=Retired-Pension Administration |
14 | OPRID2 | Character(30) | VARCHAR2(30) NOT NULL |
A user's ID
Prompt Table: OPRID_VW2 |
15 | FO_BRANCH2 | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Prompt Table: FO_BRANCH_TBL |
16 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
17 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
18 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
19 | PHONE | Character(24) | VARCHAR2(24) NOT NULL | Telephone |