Hourly Status History
Overview
Displays current and historical hourly status changes for employees, including effective dates.
SQL Code
-- Current status from EMPLOYEES table
SELECT
E.FILEKEY,
E.LASTNAME,
E.FIRSTNAME,
E.IDNUM,
ST.NAME AS Status,
E.STATUSEFFDATE AS EffectiveDate,
'Current' AS RecordType
FROM
EMPLOYEES AS E
LEFT JOIN STATUSTYPES AS ST ON E.STATUS = ST.NUM
UNION
ALL
-- Historical status from EMPSTATUSHIST table
SELECT
E.FILEKEY,
E.LASTNAME,
E.FIRSTNAME,
E.IDNUM,
ST.NAME AS Status,
H.EFFDATE AS EffectiveDate,
'Historical' AS RecordType
FROM
EMPLOYEES AS E
JOIN EMPSTATUSHIST AS H ON E.FILEKEY = H.FILEKEY
LEFT JOIN STATUSTYPES AS ST ON H.STATUS = ST.NUM
ORDER BY
LASTNAME ASC,
FIRSTNAME ASC,
RecordType ASC,
EffectiveDate DESC;Content Inventory
- Doc File:
content/docs/reports/employee_information/hourly_status_history.mdx - SQL Script:
SQL/reports/employee_information/hourly_status_history.sql
Hourly Status Change Near Holiday Report
Report that identifies employees whose hourly status changed near holidays within a specified date range, helping administrators identify potential issues with status changes that coincide with holidays
My Employees Accrued Time
Report that retrieves the total accrued Compensatory Time Off (CTO) hours for active employees within a specified date range, filtered for employees that the current user has access to