This project demonstrates basic HR analytics using SQL and Excel. It includes two datasets
Employees
— details about employees such as department, age, gender, salary, and employment status.PerformanceReviews
— review scores and dates for employee performance evaluations.
The goal is to show how SQL and Excel can be used to extract insights from HR data.
- SQL (for data creation, joins, filtering, aggregation)
- Microsoft Excel (for analysis, pivot tables, visualizations)
- CSV (as data source format)
employees.csv
synthetic employee dataperformance_reviews.csv
synthetic performance review records- (Optional)
analysis.xlsx
Excel file with charts and pivot tables (you can add your own)
- Average performance score by department
- Correlation between salary and performance
- Employee retention and attrition trends
- Age and gender distribution across departments
- Import
employees.csv
andperformance_reviews.csv
into Excel or any SQL environment. - Use Power Query or pivot tables in Excel to analyze data.
- Run SQL queries to explore relationships, group statistics, and trends.
-- Average score per department
SELECT e.Department, AVG(p.Score) AS AvgScore
FROM Employees e
JOIN PerformanceReviews p ON e.EmployeeID = p.EmployeeID
GROUP BY e.Department;
-- Count of terminated employees
SELECT COUNT() AS Terminated
FROM Employees
WHERE TerminationDate IS NOT NULL;