{"id":20021749,"url":"https://github.com/ndleah/people-data-analysis","last_synced_at":"2026-03-05T17:44:41.112Z","repository":{"id":105089197,"uuid":"381246016","full_name":"ndleah/people-data-analysis","owner":"ndleah","description":"👥 Employee analysis #DWD","archived":false,"fork":false,"pushed_at":"2021-09-14T18:31:03.000Z","size":3642,"stargazers_count":18,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T03:43:01.196Z","etag":null,"topics":["analytics","data-analysis","data-science","historical-data","materialized-view","slow-changing-dimension","sql"],"latest_commit_sha":null,"homepage":"https://www.datawithdanny.com","language":"SQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ndleah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-06-29T05:10:28.000Z","updated_at":"2024-10-13T16:09:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"7350d7ec-418d-4dcb-b960-8c1a91a92363","html_url":"https://github.com/ndleah/people-data-analysis","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"e8cd7689180c29cce11f9d20f4793983b7fd9d5e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ndleah/people-data-analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndleah%2Fpeople-data-analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndleah%2Fpeople-data-analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndleah%2Fpeople-data-analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndleah%2Fpeople-data-analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ndleah","download_url":"https://codeload.github.com/ndleah/people-data-analysis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndleah%2Fpeople-data-analysis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30139765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T16:58:46.102Z","status":"ssl_error","status_checked_at":"2026-03-05T16:58:45.706Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics","data-analysis","data-science","historical-data","materialized-view","slow-changing-dimension","sql"],"created_at":"2024-11-13T08:38:06.144Z","updated_at":"2026-03-05T17:44:41.089Z","avatar_url":"https://github.com/ndleah.png","language":"SQL","readme":"![Star Badge](https://img.shields.io/static/v1?label=%F0%9F%8C%9F\u0026message=If%20Useful\u0026style=style=flat\u0026color=BC4E99)\n![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)\n[![View My Profile](https://img.shields.io/badge/View-My_Profile-green?logo=GitHub)](https://github.com/ndleah)\n[![View Repositories](https://img.shields.io/badge/View-My_Repositories-blue?logo=GitHub)](https://github.com/ndleah?tab=repositories)\n\n# People Data Analytics \u003cimg src=\"/IMG/3aQl.gif\" align=\"right\" width=\"120\" /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://forthebadge.com/images/badges/built-with-love.svg\"\u003e\n  \u003cimg src=\"https://forthebadge.com/images/badges/check-it-out.svg\"\u003e\n\u003c/p\u003e\n\n\u003e This case study is contained within the [Serious SQL](https://www.datawithdanny.com) by [Danny Ma](https://www.linkedin.com/in/datawithdanny/).\n\n\n\n\n\n# 📕 Table of contents\n\u003c!--ts--\u003e\n   * 🛠️ [Requirements](#️-requirements)\n   * 📂 [Data Overview](#-data-overview)\n   * 🚀 [Solution](#-solutions)\n   * 🧙‍♂️ [Result](#️-result)\n\u003c!--te--\u003e\n\n \u003cbr /\u003e \n\n# 🛠️ Requirements\n\n**HR Analytica** team requires 2 separate analytical views to be created using a single SQL script for two separate data assets that can be used for reporting purposes.\n\nA current snapshot of the information is required to power **HR Analytica**’s People Analytics dashboard and Employee Deep Dive shown above.\n\nThe following data requirements is as follows:\n\n### **1. Dashboard Data Components**\n\n\u003cdetails\u003e\n\u003csummary\u003e\nClick to view\n\u003c/summary\u003e\n\n🌟 **Company Level Insights**\n\n* Total number of employees\n* Average company tenure in years\n* Gender ratios\n* Average payrise percentage and amount\n\n🌟 **Department Level Insights**\n\n* Number of employees in each department\n* Current department manager tenure in years\n* Gender ratios\n* Average payrise percentage and amount\n\n **Title Level Insights**\n\n* Number of employees with each title\n* Minimum, average, standard deviation of salaries\n* Average total company tenure\n* Gender ratios\n* Average payrise percentage and amount\n\nA historic data asset is also required by **HR Analytica** so their People Analytics team can perform deep dives into a specific employee’s history. This analysis is used for decision making when it comes to pay rises and promotions.\n\n\u003c/details\u003e\n\n### **2. Deep Dive Data Components**\n\n\u003cdetails\u003e\n\u003csummary\u003e\nClick to view\n\u003c/summary\u003e\n\n\n🌟 **Individual Employee Deep Dive**\n\n* See all the various employment history ordered by effective date including salary, department, manager and title changes\n* Calculate previous historic payrise percentages and value changes\n* Calculate the previous position and department history in months with start and end dates\n* Compare an employee’s current salary, total company tenure, department, position and gender to the average benchmarks for their current position\n\n\u003c/details\u003e\n\n# 📂 Data Overview\n\n[![View Data Exploration Folder](https://img.shields.io/badge/View-Data_Exploration_Folder-A80101?style=for-the-badge\u0026logo=GITHUB)](https://github.com/ndleah/HR-Analytics-Using-SQL/tree/main/1_Data_Exploration)\n\n# 🚀 Solutions\n\n[![View Data Join Folder](https://img.shields.io/badge/View-Problem_Solving_Folder-A80101?style=for-the-badge\u0026logo=GITHUB)](https://github.com/ndleah/HR-Analytics-Using-SQL/tree/main/2_Problem_Solving)\n\n# 🧙‍♂️ Result\n\n ## Final Output\nHooray! Finally, this is what out final input looks like:\n\n### ✅ **People Analytics Dashboard**\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/ndleah/HR-Analytics-Using-SQL/blob/main/IMG/Current_Snapshot_Reporting.png\" width=50% height=50%\u003e\n\n\u003cp align=\"center\"\u003e\n    Source: Serious SQL\n\u003c/p\u003e\n\n### ✅ **Employee Deep Dive**\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/ndleah/HR-Analytics-Using-SQL/blob/main/IMG/Historic_Employee.png\" width=50% height=50%\u003e\n\n\u003cp align=\"center\"\u003e\n    Source: Serious SQL\n\u003c/p\u003e\n\n# ✨ Contribution\n\nContributions, issues, and feature requests are welcome!\n\nTo contribute to Patronify, see the GitHub documentation on **[creating a pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request)**.\n\n# 👏 Support\n\nGive a ⭐️ if you like this project!\n___________________________________\n\n\u003cp\u003e\u0026copy; 2021 Leah Nguyen\u003c/p\u003e\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndleah%2Fpeople-data-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndleah%2Fpeople-data-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndleah%2Fpeople-data-analysis/lists"}