Back to Portfolio
Microscopic image of a virus

Data Exploration:
Two years of COVID

Data Exploration
DQ Daniel Querales

A data exploration project of the COVID-19 dataset using tools like SQL and Tableau to understand how the global pandemic developed between 2020 and 2021.

Project Overview

  • Dataset: COVID-19 (2020-2021).
  • Key Metrics: Total cases, deaths & vaccination rates.
  • Comparison: Benchmarked against Google's Coronavirus dashboard.
  • Tech Stack: SQL Server & Tableau Public.
  • Code: Available on GitHub Repository.

Objectives

The goal is to build a report that shows summarized information about the deaths, cases and vaccinations corresponding to the period of 2020-2021 to understand how the pandemic is currently developing in the world.

Data Preparation

Importing Data

Data sourced from Our World in Data. The process involved extracting data from CSVs, importing into SQL Server, executing queries, and visualizing results in Tableau.

Asking the Questions (SQL)

a) Total Cases vs Total Deaths

SELECT 
    MAX(total_cases) AS TotalCases, 
    MAX(total_deaths) AS TotalDeaths, 
    (MAX(total_deaths)/MAX(total_cases)*100) AS DeathPct 
FROM clean_owid_covid;

b) Global Vaccination Stats

SELECT 
    MAX(population) AS WorldPop, 
    MAX(people_fully_vaccinated) AS Vaccinated, 
    MAX(people_fully_vaccinated)/MAX(population)*100 AS VaccPct
FROM clean_owid_covid;

c) New Cases Per Date

SELECT date, MAX(new_cases) AS NewCases 
FROM clean_owid_covid 
GROUP BY date 
ORDER BY date;

d) Countries with Most Deaths

SELECT location, MAX(total_deaths) AS TotalDeaths 
FROM clean_owid_covid
WHERE continent IS NOT NULL
GROUP BY location
ORDER BY TotalDeaths DESC
LIMIT 5;

e) Vaccination Speed by Location

SELECT location, 
    MAX(people_fully_vaccinated) AS PeopleFullyVax,
    MAX(people_fully_vaccinated)/MAX(population)*100 AS PctFullyVax
FROM clean_owid_covid
WHERE continent IS NOT NULL
GROUP BY location
ORDER BY PeopleFullyVax DESC;

Results (Dashboard)

Interactive Dashboard

Explore the full interactive Tableau visualization directly on Tableau Public.

View on Tableau Public

Conclusions

  • Mortality Rate: Approximately 1.8% of total cases resulted in death.
  • Global Vaccination: ~50% of the world population fully vaccinated by 2022.
  • Highest Deaths: The US reported the highest death toll (824K).
  • Peak Infection: Spike of 1.9M new cases/day recorded in late 2021.
  • Vaccination Leader: China led with 83.6% fully vaccinated population.