This project involved exploring and analyzing COVID-19 data using SQL to extract meaningful insights on global infection, death rates, and vaccinations.
Skills Applied:
- Joins
- Common Table Expressions (CTEs)
- Temporary Tables
- Window Functions
- Aggregate Functions
- Creating Views
- Data Type Conversion
Steps:
Database Creation:
- Created a new database: Covid19Details.
- Imported the dataset in CSV format using SQL Server’s Import Flat File wizard.
- Selected appropriate data types during the import process.
Database Setup: > The database was successfully created and loaded with COVID-19 data.
Key Analytical Queries:
- Initial Data Overview: Retrieved the dataset to understand the structure and data available for analysis.
- Total Cases vs. Total Deaths: Analyzed the correlation between total cases and deaths across countries.
- Mortality Rate by Country: Showed the likelihood of dying if infected by COVID-19 for each country.
- Total Cases vs. Population: Compared the number of COVID-19 cases to the population size.
- Infection Rate: Calculated the percentage of the population infected with COVID-19.
- Highest Infection Rates Identified countries with the highest infection rates relative to their population.
- Highest Death Rates: Found countries with the highest death counts relative to their population.
- Continents with Highest Death Rates:** Analyzed continents with the highest death counts per population.
- Global Numbers: Summarized global statistics for COVID-19 cases, deaths, and vaccinations.
- Population vs. Vaccinations: Compared total population to vaccination rates.
- Vaccination Percentage: Calculated the percentage of the population that received at least one vaccine dose.
Advanced Techniques: 12. CTE Calculation: Used CTEs to partition data for further analysis. 13. Temp Table Calculation: Created temporary tables to partition data and perform calculations on subsets of data. 14. Creating Views: Created views to store aggregated results for use in later visualizations.
RESOURCES : https://www.youtube.com/watch?v=qfyynHBFOsM&list=PLUaB-1hjhk8H48Pj32z4GZgGWyylqv85f