HS_PER_ORG_ASGN(SQL View) |
Index Back |
---|---|
Per Org/Inst/Current Job |
SELECT A.EMPLID ,A.EMPL_RCD ,N.NAME ,A.PER_ORG ,A.POI_TYPE ,A.BENEFIT_RCD_NBR ,A.ORG_INSTANCE_ERN ,J.HR_STATUS ,J.EMPL_STATUS ,A.HOME_HOST_CLASS ,ORG.HIRE_DT ,ORG.LAST_HIRE_DT ,ORG.TERMINATION_DT ,J.ASGN_START_DT ,J.ASGN_END_DT ,J.LST_ASGN_START_DT ,A.CMPNY_SENIORITY_DT ,A.SERVICE_DT ,A.SENIORITY_PAY_DT ,A.PROF_EXPERIENCE_DT ,A.LAST_VERIFICATN_DT ,A.PROBATION_DT ,A.LAST_INCREASE_DT ,A.OWN_5PERCENT_CO ,A.BUSINESS_TITLE , J.LAST_DATE_WORKED ,J.EXPECTED_RETURN_DT , J.EXPECTED_END_DATE ,A.POSITION_PHONE , J.EFFDT , J.EFFSEQ FROM PS_PER_ORG_ASGN A , PS_JOB J , PS_JOB ORG , PS_PERSON_NAME N WHERE A.EMPLID = J.EMPLID AND A.EMPL_RCD = J.EMPL_RCD AND A.EMPLID = N.EMPLID AND J.EFFDT = ( SELECT MAX(EFFDT) FROM PS_JOB JOB2 WHERE J.EMPLID = JOB2.EMPLID AND J.EMPL_RCD = JOB2.EMPL_RCD AND (( JOB2.EFFDT <= %CurrentDateIn) OR (JOB2.EFFDT > %CurrentDateIn AND %CurrentDateIn < ( SELECT MIN(J2.EFFDT) FROM PS_JOB J2 WHERE J2.EMPLID = J.EMPLID AND J2.EMPL_RCD = J.EMPL_RCD) ) )) AND J.EFFSEQ = ( SELECT MAX(EFFSEQ) FROM PS_JOB JOB3 WHERE JOB3.EMPLID = J.EMPLID AND JOB3.EMPL_RCD = J.EMPL_RCD AND JOB3.EFFDT = J.EFFDT ) AND A.EMPLID = ORG.EMPLID AND A.ORG_INSTANCE_ERN = ORG.EMPL_RCD AND ORG.EFFDT = ( SELECT MAX(EFFDT) FROM PS_JOB ORG2 WHERE ORG.EMPLID = ORG2.EMPLID AND ORG.EMPL_RCD = ORG2.EMPL_RCD AND (( ORG2.EFFDT <= %CurrentDateIn) OR (ORG2.EFFDT > %CurrentDateIn AND %CurrentDateIn < ( SELECT MIN(J2ORG.EFFDT) FROM PS_JOB J2ORG WHERE J2ORG.EMPLID = ORG.EMPLID AND J2ORG.EMPL_RCD = ORG.EMPL_RCD) ) )) AND ORG.EFFSEQ = ( SELECT MAX(EFFSEQ) FROM PS_JOB ORG3 WHERE ORG3.EMPLID = ORG.EMPLID AND ORG3.EMPL_RCD = ORG.EMPL_RCD AND ORG3.EFFDT = ORG.EFFDT ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | HS_EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID for Health and Safety
Prompt Table: PERSON |
2 | HS_EMPL_RCD | Number(3,0) | SMALLINT NOT NULL |
Employment Record Number for Health and Safety
Default Value: 0 |
3 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
4 | 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 Default Value: POI Prompt Table: PER_ORG_VW |
5 | POI_TYPE | Character(5) | VARCHAR2(5) NOT NULL |
Defines the Transactional usage of POIs in HRMS.
Prompt Table: POI_TYPE_TBL |
6 | BENEFIT_RCD_NBR | Number(3,0) | SMALLINT NOT NULL | Specifies a sequence number associated with each of multiple concurrent jobs for a one employee. It is used to determine the applicable benefit program for each job. The first job entered for an employee is automatically assigned a Benefit Record Number of zero (0). This field is linked with EMPL_RCD#, the Employment Record Number. |
7 | ORG_INSTANCE_ERN | Number(3,0) | SMALLINT NOT NULL | Indicates which EMPL_RCD (ERN) is considered the Organizational Instance for this particular ERN. An Organizational Instance defines an Instance of Employment or an Instance of Contingent Workforce. Hire, Termination, and Service dates are captured at the Organiational Instance level. |
8 | HR_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
HR Status
A=Active I=Inactive |
9 | EMPL_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Payroll Status
A=Active D=Deceased 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 |
10 | HOME_HOST_CLASS | Character(1) | VARCHAR2(1) NOT NULL |
Home/Host Classification
M=Home S=Host Default Value: M |
11 | HIRE_DT | Date(10) | DATE | First Start Date |
12 | LAST_HIRE_DT | Date(10) | DATE | Latest Start Date - The latest time that an Employee or a Contingent Worker has started - based on EMPLID/EMPL_RCD. |
13 | TERMINATION_DT | Date(10) | DATE | Termination Date |
14 | ASGN_START_DT | Date(10) | DATE | Start date of the specific EMPL_RCD assignment. This is different from the Person's Hire date. |
15 | ASGN_END_DT | Date(10) | DATE | End date of the specific EMPL_RCD assignment. This is different from the Person's Termination date. |
16 | LST_ASGN_START_DT | Date(10) | DATE | Lastest start date of the specific EMPL_RCD assignment. This is different from the Person's organizational instance Last Hire Date. |
17 | CMPNY_SENIORITY_DT | Date(10) | DATE | Company Seniority Date |
18 | SERVICE_DT | Date(10) | DATE | Service Date |
19 | SENIORITY_PAY_DT | Date(10) | DATE | Seniority Pay Calc Date |
20 | PROF_EXPERIENCE_DT | Date(10) | DATE | Professional Experience Date |
21 | LAST_VERIFICATN_DT | Date(10) | DATE | Last Verification Date |
22 | PROBATION_DT | Date(10) | DATE | Probation Date |
23 | LAST_INCREASE_DT | Date(10) | DATE | Date Last Increase |
24 | OWN_5PERCENT_CO | Character(1) | VARCHAR2(1) NOT NULL |
A flag that indicates whether or not (Y or N) an employee owns 5% or more of the company. This value is used in nondiscrimination testing.
Y/N Table Edit Default Value: N |
25 | BUSINESS_TITLE | Character(30) | VARCHAR2(30) NOT NULL | Business Title |
26 | LAST_DATE_WORKED | Date(10) | DATE | Last Date Worked |
27 | EXPECTED_RETURN_DT | Date(10) | DATE | Expected Return Date |
28 | EXPECTED_END_DATE | Date(10) | DATE | Expected End Date of a job. |
29 | POSITION_PHONE | Character(24) | VARCHAR2(24) NOT NULL | Phone number for the Position |
30 | EFFDT_NOKEY | Date(10) | DATE | Used in Records /Views where the EFFDT won't be a key |
31 | EFFSEQ_NOKEY | Number(3,0) | SMALLINT NOT NULL | Field used in views where EFFSEQ won't be a key |