![banner1](https://private-user-images.githubusercontent.com/42479736/284064893-ca981244-6b59-4f81-bf5c-88ad93323883.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4OTczMzksIm5iZiI6MTcyMzg5NzAzOSwicGF0aCI6Ii80MjQ3OTczNi8yODQwNjQ4OTMtY2E5ODEyNDQtNmI1OS00ZjgxLWJmNWMtODhhZDkzMzIzODgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDEyMTcxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0MGMwYzE2ZGNlNDlmODI5MDI0YzljZjg2MGFhMjQ2YTBiNTVhOWVlMjBjMWI0Mzc0ZjYwYWQ2MWUyZWIyZGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.dkh9K2wBYyfAywUvOjsIq-GnvZ4dunw4StC86n_0qQw)
This repository contains two distinct projects: "EmployeeManagementDB" and "EPLMatchesAnalysis." Each project focuses on different aspects of database management and analysis in SQL.
The "EmployeeManagementDB" project involves the creation and management of a comprehensive employee database. It includes the creation of two key tables, EmployeeDemographics
and EmployeeSalary
, along with various SQL queries to showcase different concepts such as SELECT, UPDATE, DELETE, PARTITION BY, CTE, Temp Tables, String Functions, Stored Procedures, and Subqueries.
The SQL script in this project covers the following:
- Table creation and data insertion for employee demographics and salary information.
- Usage of CASE statements for conditional logic in SQL.
- Introduction to HAVING clause for filtering results based on aggregate functions.
- Implementation of temporary tables and common table expressions (CTE).
- String functions usage, including TRIM, LTRIM, RTRIM, REPLACE, SUBSTRING, UPPER, and LOWER.
- Creation and execution of stored procedures for efficient data retrieval.
- Subqueries demonstrated in SELECT, FROM, and WHERE statements.
This project aims to provide a solid foundation for employee data management, salary analysis, and insightful queries for decision-making.
The "EPLMatchesAnalysis" project focuses on data cleaning and analysis of English Premier League (EPL) statistics. It includes transforming and optimizing the eplmatches_stats
table by addressing issues with the date and time columns. The project also involves date and time extraction, updating the table with new columns, and performing a detailed analysis of match data.
The SQL script in this project covers the following:
- Data cleaning steps for two EPL-related tables (
epl_league_stats
andeplmatches_stats
). - Extraction and conversion of date and time information from the
date_GMT
column. - Updating the table with new columns to store transformed date and time values.
- Detailed analysis of match data, including top matches by attendance and specific match conditions.
This project aims to enhance the quality of EPL match data and derive meaningful insights for further exploration and visualization.
Feel free to explore each project individually for a detailed understanding of their objectives, SQL script contents, and outcomes.