Country or region and language

    Choose your country or region and your language.

    Suggested for you

      All countries and regions

        Choose your character

        It shows in the top bar and on your profile. Change it any time.

        The Work Gym / Free resources / Free practice datasets

        Employee and HR dataset

        The HR data of a fictional software company with three departments: 48 workers with start and end dates, exits, FTE and salary, open roles from posting to start date, monthly headcount and an engagement survey. Small on purpose, with the traps real HR exports have, so you can check every number by hand.

        Download

        • employees.xlsxExcel workbook, one sheet per table (6) · 10 KB
        • employees.sqlSQL script for PostgreSQL, MySQL, SQLite and DuckDB · 11 KB

        CSV files, one per table

        The data is fictional and free to use for practice, teaching and portfolio work. A link back is appreciated.

        What to practice

        The company and its people are invented. The data includes contractors, part-time FTE, voluntary and involuntary exits, duplicate assignment rows and survey answers left blank, the cases that make turnover and headcount numbers go wrong.

        1. Count headcount and FTE by department, leaving out contractors.
        2. Work out the voluntary turnover rate for a period from start_date, end_date and exit_type.
        3. Measure time to fill (opened to accepted) and time to start for each role in recruiting.
        4. Find where assignments repeats a person and decide which row to keep.

        Practice with checked exercises

        Data dictionary

        Table and column names are exactly as they appear in the files.

        people48 rows

        One row per worker.

        employee_idINTEGER
        Worker number
        departmentVARCHAR
        Engineering, Support or Finance
        worker_typeVARCHAR
        employee or contractor
        start_dateDATE
        Start date
        end_dateDATE
        Last day (empty if still here)
        exit_typeVARCHAR
        voluntary or involuntary (empty if still here)
        fteDOUBLE
        Full-time equivalent: 1 is full time, 0.5 is half time
        annual_salaryDOUBLE
        Annual salary
        band_minDOUBLE
        Salary band minimum
        band_midDOUBLE
        Salary band midpoint
        band_maxDOUBLE
        Salary band maximum
        currencyVARCHAR
        Currency
        First rows
        employee_iddepartmentworker_typestart_dateend_dateexit_typefteannual_salaryband_minband_midband_maxcurrency
        1Engineeringemployee2024-02-011480116000080000100000USD
        2Engineeringemployee2024-03-010.5320116000080000100000USD
        3Engineeringemployee2024-01-012026-03-15voluntary1800116000080000100000USD
        4Engineeringemployee2024-05-012026-05-01involuntary1900116000080000100000USD
        5Engineeringemployee2023-01-012025-12-31voluntary1750116000080000100000USD

        recruiting18 rows

        Open roles from posting to start date.

        candidate_idINTEGER
        Candidate number
        departmentVARCHAR
        Department
        opened_dateDATE
        Date the role opened
        applied_dateDATE
        First application
        offer_dateDATE
        Offer date
        accepted_dateDATE
        Offer accepted
        start_dateDATE
        Start date
        statusVARCHAR
        filled, open or canceled
        First rows
        candidate_iddepartmentopened_dateapplied_dateoffer_dateaccepted_datestart_datestatus
        1Engineering2026-04-012026-04-022026-04-182026-04-202026-05-15filled
        2Engineering2026-04-052026-04-102026-04-182026-04-282026-05-15filled
        3Engineering2026-05-012026-05-102026-04-18open
        4Engineering2026-06-012026-06-05open
        5Engineering2026-01-012026-01-07canceled

        snapshots6 rows

        Monthly headcount by department.

        departmentVARCHAR
        Department
        monthVARCHAR
        Month (YYYY-MM)
        openingINTEGER
        Headcount at the start of the month
        closingINTEGER
        Headcount at the end of the month
        hiresINTEGER
        Hires
        exitsINTEGER
        Exits
        voluntary_exitsINTEGER
        Voluntary exits
        First rows
        departmentmonthopeningclosinghiresexitsvoluntary_exits
        Engineering2026-054146831
        Engineering2026-064854842
        Support2026-055863942
        Support2026-066572953
        Finance2026-0575801053

        survey30 rows

        Answers to one engagement survey question.

        submission_idINTEGER
        Answer number
        respondent_idINTEGER
        Worker who answered
        departmentVARCHAR
        Department
        item_scoreINTEGER
        Score from 1 to 5 (empty if skipped)
        First rows
        submission_idrespondent_iddepartmentitem_score
        11Engineering2
        801Engineering5
        22Engineering
        33Engineering4
        44Engineering5

        invitations3 rows

        How many people were invited to the survey.

        departmentVARCHAR
        Department
        invitedINTEGER
        People invited
        First rows
        departmentinvited
        Engineering14
        Support15
        Finance16

        assignments60 rows

        Department assignments, with some people listed twice.

        employee_idINTEGER
        Worker
        departmentVARCHAR
        Department
        fteDOUBLE
        FTE on this assignment
        First rows
        employee_iddepartmentfte
        1Engineering1
        1Engineering1
        2Engineering0.5
        2Engineering0.5
        3Engineering1

        Questions

        Why is the dataset so small?

        So you can check every answer by hand. It is the data of the HR analytics course, where each table is built around a mistake people make in real reports, such as counting a contractor as headcount.

        More datasets

        Free practice datasets

        Your Work Gym account

        Save your progress and pick up on another device. Your browser's progress comes with you.

        New accounts get 12 hours of full access: every course, unit, project and exam. The clock starts when you open your first lesson.

        Plan your practice from a job ad or syllabus

        Have a referral code?

        or

        You can keep practicing without an account.

        Change your plan

        Checking the price

        Help and feedback

        Ask a question, tell us what is not working, or share an idea. We reply by email.

        What is it about?

        We use it only to reply to you.