DataBrighten

    Sample HR attrition data

    1,000 × 13rows × columns in the 1,000-row file

    Updated 3 November 2026. Fictional U.S. businesses and people, generated with a fixed seed.

    textnumberdateyes/no
    Largest file10,000rows; also 100 and 1,000
    Columns13with a data dictionary below
    Dates2010-01-08 – 2024-12-01range in the file
    LicenceCC0synthetic, free for any use

    What is in it

    Each row is one fictional employee: department, title, hire date, tenure, monthly pay, overtime, two survey scores, commute distance, years since promotion and whether they left during 2024. Leaving is more likely with overtime, low satisfaction, low pay and long commutes, so the file has a pattern to find.

    More practice tables like this one: all 14 newer sample datasets.

    First rows

    point at a column to light it up

    employee_idtextagenumberdepartmenttextjob_titletexthire_datedateyears_at_companynumbermonthly_incomenumberovertimeyes/nojob_satisfactionnumberwork_life_balancenumberdistance_from_home_minumberlast_promotion_yearsnumberattritionyes/no
    HR3000141SalesSales Representative2023-05-311.64900FALSE42131FALSE
    HR3000226EngineeringQA Engineer2019-09-105.38330TRUE42105FALSE
    HR3000336ITIT Support Technician2013-10-2711.25660TRUE3220FALSE
    HR3000433ITIT Manager2014-12-179.67530TRUE2480TRUE
    HR3000545EngineeringSenior Software Engineer2017-03-187.811450FALSE3383FALSE
    HR3000635EngineeringSoftware Engineer2019-03-025.89250FALSE4421FALSE
    HR3000732OperationsLogistics Analyst2015-06-189.54520FALSE1385FALSE
    HR3000848Customer SupportCustomer Success Manager2019-01-265.97560TRUE4370FALSE
    HR3000935EngineeringQA Engineer2022-01-222.97690TRUE4240FALSE
    HR3001031MarketingMarketing Specialist2018-06-196.57230FALSE2351FALSE

    Attrition rate by department

    % who left, 1,000-row file

    IT25.0Marketing18.4Operations16.0Finance16.0Human Resources13.5Sales13.3Customer Support12.5Engineering10.4
    Show as a table
    departmentvalue
    IT25.0
    Marketing18.4
    Operations16.0
    Finance16.0
    Human Resources13.5
    Sales13.3
    Customer Support12.5
    Engineering10.4
    Source: DataBrighten synthetic data (seed 42), computed from the file you can download here.

    Data dictionary

    ColumnTypeMeaning
    employee_idtextEmployee number
    ageintegerAge in years, 20-62
    departmenttextOne of 8 departments
    job_titletextJob title
    hire_datedateStart date (2010-2024, at age 18 or older)
    years_at_companydecimalYears from hire_date to 2024-12-31 (or to the leaving date)
    monthly_incomeintegerMonthly base pay (USD, fictional)
    overtimebooleanWorks regular overtime (TRUE/FALSE)
    job_satisfactionintegerSurvey score 1 (low) to 4 (high)
    work_life_balanceintegerSurvey score 1 (low) to 4 (high)
    distance_from_home_miintegerCommute distance in miles
    last_promotion_yearsintegerYears since last promotion

    Practice questions

    answers checked in SQL and in Python

    What share of employees left in 2024?

    14.6%

    Excel

    =COUNTIF(M:M,TRUE)/1000

    SQL

    SELECT ROUND(100.0*SUM(attrition)/COUNT(*),1) FROM hr_attrition

    File: hr-attrition-1000

    Attrition rate with and without overtime?

    overtime TRUE: 22.4%; overtime FALSE: 11.4%

    Excel

    =COUNTIFS(H:H,TRUE,M:M,TRUE)/COUNTIF(H:H,TRUE)

    SQL

    SELECT CASE WHEN overtime THEN 'TRUE' ELSE 'FALSE' END AS ot, ROUND(100.0*SUM(attrition)/COUNT(*),1) AS pct FROM hr_attrition GROUP BY ot ORDER BY pct DESC, ot

    File: hr-attrition-1000

    Attrition rate by department?

    IT 25.0%; Marketing 18.4%; Finance 16.0%; Operations 16.0%; Human Resources 13.5%; Sales 13.3%; Customer Support 12.5%; Engineering 10.4%

    SQL

    SELECT department, ROUND(100.0*SUM(attrition)/COUNT(*),1) AS pct FROM hr_attrition GROUP BY department ORDER BY pct DESC, department

    File: hr-attrition-1000