Skip to main content

Data Export: Employee holiday entitlement

Data export to show hours taken and remaining for each employee.

H
Written by Harry Ledger
Updated over 3 weeks ago

This SQL included in the following instructions, will help to create a data export with the following fields.

  • First Name

  • Surname

  • Holiday Year

  • Holiday Rule

  • Holiday Year Start

  • Holiday Year End

  • YTD Holiday Entitlement

  • YTD Holiday Booked

  • YTD Holiday Taken

  • YTD Holiday Remaining


Create the export

To run this export, follow the steps below.

  1. In the Admin Tool, click Import/Export Data.

  2. Click Create an export definition.

  3. Click Select the data to export.

  4. Click the Database drop-down box, and click SelectHR.

  5. Log in with your SQL Credentials.

  6. Click on the SQL Tab.

  7. Copy and paste the entirety of the following SQL into the SQL tab.

    Select Person.Snapshot.[Person Number], Person.Snapshot.[First Name], Person.Snapshot.Surname, Person.Snapshot.[Effective Status], Absence.[Holiday History with Organisation].Year, Absence.[Holiday History with Organisation].[Holiday Rule], Absence.[Holiday History with Organisation].[Holiday Year Start], Absence.[Holiday History with Organisation].[Holiday Year End], Absence.[Holiday History with Organisation].[YTD Holiday Entitlement], Absence.[Holiday History with Organisation].[YTD Holiday Booked], Absence.[Holiday History with Organisation].[YTD Holiday Taken], Absence.[Holiday History with Organisation].[YTD Holiday Remaining] From Person.Snapshot Inner Join Absence.[Holiday History with Organisation] On Person.Snapshot.[Person Number] = Absence.[Holiday History with Organisation].[Person Number] Where Person.Snapshot.[Effective Status] = 'current' And Absence.[Holiday History with Organisation].Year = 2025

  8. Click on the Query tab, and change the criteria on the Year field to the Holiday Year you need to see data for.

  9. Click on the Data tab to view the results of the export.

  10. If you are happy with the data, click on the small golden key on the top left of the export, and select Person Number from the drop down list.

  11. Click OK.

πŸ€“ Tip: The change the holiday year you are viewing statistics for, change the year entered in the criteria section of the export tool.


​

Did this answer your question?