Welcome to my Layoffs Data Analysis Project, where I dive deep into layoffs trends from 2020 to 2023 using MySQL! This project was inspired by the turbulent times many industries faced, and it’s all about uncovering key insights from global layoffs data. 🏢📉
We all know that layoffs have become a pressing topic in recent years. With this project, I’ve used MySQL to explore and analyze a dataset that captures layoffs across various industries, countries, and company stages. The goal? To identify patterns, trends, and significant outliers that tell the real story behind the numbers.
Whether you're curious about which industries were hit hardest, which companies had the highest layoffs, or how layoffs trended over time, this project covers it all.
This project uses:
- MySQL for querying and exploring the data.
- CTEs (Common Table Expressions) for complex aggregations.
- Window Functions to calculate rolling totals and rankings.
Here are some of the cool insights I’ve uncovered from the data:
- Using SQL, I found that the top companies with the highest total layoffs are concentrated in certain industries, like Consumer & Retail.
- Unsurprisingly, the United States and India lead the pack in total layoffs. The magnitude of layoffs in these regions was particularly striking.
- From 2020 to 2023, the data revealed a noticeable surge in layoffs, especially during the height of the pandemic. But what’s interesting is how layoffs have trended as industries began to recover.
- Startups and mid-stage companies were hit the hardest in terms of layoffs, with many companies laying off 100% of their workforce (yes, 100% 😲). A notable example is Britishvolt, which raised $2 billion but had to lay off their entire team!
- Using a rolling total calculation, I tracked how layoffs accumulated month over month. This helped to highlight the most challenging months during the pandemic and how layoffs progressed.
I used a variety of SQL queries to dig into the data, including:
- Identifying the maximum percentage of layoffs by company.
- Ranking companies with the highest yearly layoffs.
- Calculating the rolling monthly total of layoffs.
- Grouping by industries, countries, and company stages to see trends and patterns.
Check out the Exploratory Data Analysis Layoffs - Project.sql file to see the full list of queries used! You’ll find everything from simple SELECTs to more advanced window functions.
The dataset used for this project covers layoffs across multiple industries and countries from 2020 to 2023. Feel free to take a look at the layoffs.csv file to see the raw data that powered these insights.
This is just the beginning! In the future, I’m planning to expand this analysis by incorporating visualizations (using Python or Tableau) to make these insights even more digestible. Stay tuned for more updates!
Thank you for checking out my project. If you have any feedback or suggestions, I’d love to hear them! Feel free to connect with me on LinkedIn or explore my GitHub for more cool projects.
