Skip to main content

Data Export: Employees and their assigned working patterns/schedules

Data export to show all employees with their working pattern and schedules.

H
Written by Harry Ledger
Updated over 3 weeks ago

This guide details the process of creating a data export to show all employees alongside their working pattern.

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

  2. Click Create an export definition.

  3. Click Select the data to export.

  4. Change the database to SelectHR.

  5. Log in.

  6. Copy the below SQL:

    Select Top 100 Percent Pattern.Details.[Pattern Name], Pattern.Days.[Pattern Number], Pattern.Days.Week, Pattern.Schedules.[Schedule Name] As Sunday, Schedules1.[Schedule Name] As Monday, Schedules2.[Schedule Name] As Tuesday, Schedules3.[Schedule Name] As Wednesday, Schedules4.[Schedule Name] As Thursday, Schedules5.[Schedule Name] As Friday, Schedules6.[Schedule Name] As Saturday, Person.Snapshot.[Person Number], Person.Snapshot.[First Name], Person.Snapshot.Surname, Person.Snapshot.[Effective Status] From Pattern.Details Inner Join Pattern.Days On Pattern.Details.[Pattern Number] = Pattern.Days.[Pattern Number] Inner Join Pattern.Schedules On Pattern.Schedules.[Schedule Number] = Pattern.Days.[Sun Schedule Number] Inner Join Pattern.Schedules Schedules1 On Schedules1.[Schedule Number] = Pattern.Days.[Mon Schedule Number] Inner Join Pattern.Schedules Schedules2 On Schedules2.[Schedule Number] = Pattern.Days.[Tue Schedule Number] Inner Join Pattern.Schedules Schedules3 On Schedules3.[Schedule Number] = Pattern.Days.[Wed Schedule Number] Inner Join Pattern.Schedules Schedules5 On Schedules5.[Schedule Number] = Pattern.Days.[Fri Schedule Number] Inner Join Pattern.Schedules Schedules4 On Pattern.Days.[Thu Schedule Number] = Schedules4.[Schedule Number] Inner Join Pattern.Schedules Schedules6 On Pattern.Days.[Sat Schedule Number] = Schedules6.[Schedule Number] Inner Join Person.Snapshot On Pattern.Details.[Pattern Number] = Person.Snapshot.[Pattern Number] Group By All Pattern.Details.[Pattern Name], Pattern.Days.[Pattern Number], Pattern.Days.Week, Pattern.Schedules.[Schedule Name], Schedules1.[Schedule Name], Schedules2.[Schedule Name], Schedules3.[Schedule Name], Schedules4.[Schedule Name], Schedules5.[Schedule Name], Schedules6.[Schedule Name], Person.Snapshot.[Person Number], Person.Snapshot.[First Name], Person.Snapshot.Surname, Person.Snapshot.[Effective Status] Order By Person.Snapshot.Surname, Pattern.Days.Week

  7. In the top left of the data export window, click Options, Paste SQL from clipboard.

  8. Click Data.

  9. Once the data export is created, a Primary Key must be selected. Click the Key Field icon and select the appropriate Key. The Key Field must be represented by a number (i.e. Person Number, Absence Number etc.). When the export is finished it can be saved for future use.

  10. Click OK to continue the export. The Data Export Wizard windows appears.

  11. In the Definition name field, enter a full name. This will be the name of the report saved in the Admin Tool, which can be edited in the future, if needed. There is more information available about how to edit an existing report.

  12. Click Browse to choose a location for the report exported to Excel.

  13. In the File name field, enter a name. This will be the name of the Excel document once exported on the local machine.

  14. Use the File Format drop-down and select Microsoft Excel 97-2003.

  15. Click Next. A preview of the data appears.

  16. In the Column section under the columns preview, click a column header to select a column and set export options.

  17. Click Next.

  18. Click the Open file after export check box. The document will then open once the export is completed.

  19. Click Finish. The Export will now appear in the External Data Transfers list and can be run again.

Did this answer your question?