VACATION_VW(SQL View) |
Index Back |
---|---|
EE Current Vacation BenefitsVACATION_VW is a view which shows the current vacation benefits for each employee. It is used by the Benefits Summary panel. |
SELECT A.EMPLID ,A.EMPL_RCD ,A.PLAN_TYPE ,A.COVERAGE_ELECT ,A.EFFDT ,A.DEDUCTION_END_DT ,A.BENEFIT_PLAN ,A.VACN_HOURS FROM PS_VACATION_BEN A WHERE A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_VACATION_BEN B WHERE B.EMPLID = A.EMPLID AND B.EMPL_RCD = A.EMPL_RCD AND B.PLAN_TYPE = A.PLAN_TYPE AND B.EFFDT <= %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: PERSON |
2 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL |
Empl Rcd Nbr
Prompt Table: PER_ORG_ASGN_VW |
3 | PLAN_TYPE | Character(2) | VARCHAR2(2) NOT NULL | Identifies a category of benefit plan, such as Medical, Dental, and Life (Insurance). A set of plan type codes, as well as rules for creating new codes, is provided by PeopleSoft. Plan Type codes determine how the system processes and defines eligibility for the various benefit plans. |
4 | COVERAGE_ELECT | Character(1) | VARCHAR2(1) NOT NULL |
Coverage Election
E=Elect T=Terminate W=Waive |
5 | DEDUCTION_BEGIN_DT | Date(10) | DATE | Deduction Begin Date |
6 | DEDUCTION_END_DT | Date(10) | DATE | Deduction End Date |
7 | BENEFIT_PLAN | Character(6) | VARCHAR2(6) NOT NULL | Benefit Plan |
8 | VACN_HOURS | Number(7,2) | DECIMAL(6,2) NOT NULL | Vacation Buy/Sell Hours |