Comp Time Greater Than 30 Hours
Overview
Lists employees who have a remaining balance of more than 30 hours for benefit code 7 (Comp Time).
SQL Code
WITH RankedBenefits AS (
SELECT
FILEKEY,
BENEFIT,
PAYPERBEGINNING,
REMAIN,
ROW_NUMBER() OVER (
PARTITION BY FILEKEY, BENEFIT
ORDER BY PAYPERBEGINNING DESC, UNIQUEID DESC
) AS Rn
FROM EMPLOYEEBENEFITS
Where BENEFIT = 7
AND REMAIN > 30
)
SELECT
rb.FILEKEY,
e.LASTNAME+', '+e.FIRSTNAME as Emp,
b.NAME as Benefit,
REMAIN
FROM RankedBenefits rb
INNER JOIN EMPLOYEES e On rb.FILEKEY = e.FILEKEY
INNER JOIN BENEFITS b on rb.BENEFIT = b.NUM
WHERE Rn = 1;Content Inventory
- Doc File:
content/docs/reports/employee_information/comp_greater_than.mdx - SQL Script:
SQL/reports/employee_information/comp_greater_than.sql
Calendar Report Card (Month as Columns - Combined)
Comprehensive calendar-style view that combines both pay designation hours and exceptions for active employees within a specified date range, displaying months as columns and days as rows
Comp Payout Report
Report that identifies employees with high compensatory time balances that may be eligible for payout within a specified date range, showing current benefit amount and compensatory time usage