This dashboard was taken from World Health Organization (WHO) webpage at https://ourworldindata.org/covid-deaths. In order to download the dataset you can click the DOWNLOAD button right at the bottom of the dashboard.
Population Death Information.
Population Vaccination Information.
Importing the data into the SQL Server.
dbo.CovidDeaths and dbo.CovidVaccinations are two imported tables.
Running two SQL queries 1. Select * From CovidDeaths and 2. Select * From CovidVaccinations.
Covid-19 Death Percentage for United States in January. As you can see first case of Covid in US appears in January 20, 2020.
Covid-19 Death Percentage for United States in May, 2020. As you can see as total cases and total deaths rise, so does the percentage.
Note: As you can see in the above mentioned queries I used CAST () function to change the data type in total_deaths column from nvarchar(255) to float. The reason for doing so is because otherwise it was giving me an error :) In the query I also filtered for United States (Where location = 'United States'), but if you want to see the results for every country in the dataset you could skip this filtering. Or if you want to filter for any other country, you could put that country's name instead of United States.
Afghanistan has zero cases of Covid-19 in January 2020, that is why I get NULL results for PopulationPercent.
Afghanistan has 229,289 total Covid-19 cases in December 13, 2023 and the percentage of population with covid is approximately 0.55 %.
Note: As you can see in the above mentioned queries I filtered for continent (Where continent is not null). The reason for doing so was because in some places in this dataset I had continent = NULL and in those cases the location would have continent's name. I hope I didn't get you more confused than you initially were :) ok let me show you an example of how it would look like if I didn't add filter to the query. I will also add continent column to the Select clause so it is even more clear :)
Row# 1441 is the last one presenting Afghanistan (with Afghanistan under the location column and the Asia under the continent column. Row# 1442 on the other hand sums up population for all the countries in the Continent of Africa (total population of continent of Africa is approximately 1.426 billion people) and then under continent column it has NULL. So, having filter in the Where clause helps manipulate the data the way we want it to see it.
Country with the Highest Population Infection Percent (~75%) is San Marino based on this dataset.
United States has the Population Infection Percent of ~ 30%.
Continent with Highest Total Death Count is North America.
Death Percentage in the World.
Daily total number of vaccinated people vs total population of every country.
Daily percentage of vaccinated people vs total population of every country.
Daily percentage of vaccinated people vs total population of every country.
Created View (VaccinatedPopulation).