Skip to content

BonZen1/sql-layoffs-data-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Status: Completed

Global Layoffs Data Analysis (MySQL)

Project Overview

This project explores a real-world layoffs dataset using MySQL. The goal was to clean raw data, perform exploratory data analysis, and identify meaningful trends across companies, industries, countries, and time.

This is my first end-to-end SQL data analysis project, covering:

  • Data cleaning
  • Exploratory analysis
  • Business insights

Tools Used

  • MySQL
  • SQL (CTEs, Window Functions, Aggregations, Ranking)
  • GitHub for version control and portfolio presentation

Project Structure

01_data_cleaning.sql Data cleaning steps including:

  • Removing duplicates
  • Standardizing values
  • Handling NULL values
  • Formatting date fields

02_exploratory_analysis.sql Exploratory analysis including:

  • Company-level layoffs
  • Industry trends
  • Country trends
  • Time-based analysis
  • Rolling totals
  • Ranking top companies per year

03_key_insights.md Summary of business insights derived from the analysis.


Example Questions Answered

  • Which companies had the highest layoffs?
  • Which industries were most affected?
  • Which countries saw the most layoffs?
  • How did layoffs trend over time?
  • Which companies had the largest layoffs each year?

Skills Demonstrated

SQL Skills:

  • GROUP BY and Aggregations
  • JOIN logic concepts
  • Window Functions
  • CTEs
  • Data Cleaning Techniques
  • Time Series Analysis
  • Ranking Functions

Analytical Skills:

  • Trend analysis
  • Identifying patterns
  • Translating data into insights

Dataset

The dataset contains global layoff records including:

  • Company
  • Industry
  • Country
  • Total laid off
  • Percentage laid off
  • Date

What I Learned

Through this project I learned:

  • How real-world datasets require cleaning before analysis
  • How to structure SQL scripts professionally
  • How to present analysis in a portfolio-ready format
  • How to translate SQL output into business insights

Future Improvements

Possible next steps:

  • Visualizing trends using Power BI or Tableau
  • Building a dashboard
  • Adding forecasting analysis

Author

Bon Joseph Entry-level Data Analyst (SQL-focused)

About

SQL analysis of global layoffs data with insights by company, industry, and country.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors