Skip to content

SamaSamrin/Covid19_Analysis_with_SQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Covid19 Mortality Analysis with SQL (Microsoft SQL Server Management Studio 22)

Which countries had the peak mortality rate during Covid19?

image

From the query results, we can see that countries like Sudan, Guyana, Iran, Nicaragua, Guatemala, Gambia, and Philippines were suffering the most from the highest mortality rates (50-100%) during the February-March period of 2020.

What about Canada? How was it doing in terms of mortality rate from Covid19?

image

So, interestingly, the worst Canada had was in the May-June period where its highest mortality rate from Covid was around 8.5%. Still not as bad as it was for some other countries round the world, thankfully.

But when was the highest number of deaths?

image

Surprisingly, the most deaths it saw was in April of next year (2021). Even though the death percentage was around only 2%, over 23 thousand people died per day! We had to convert the ‘total_deaths’ column into INT here since its original data type was set as STRING, leading to erroneous results.

Now let’s take a look at Bangladesh, on the other side of the world, struggling from the same pandemic.

image

As expected, its worst mortality rate is much higher than Canada’s – 12.82% instead of 8.58%. They struggled with this the most around March-April period of 2020.

And when did most people die from Covid there?

image

Luckily, it was around half of what it was in Canada – 11,000 daily deaths instead of 23,000. However, they both were around the same timeframe – April of 2021 – when possibly the second wave of Covid19 hit the world with its new variants.

Which countries suffered the most from high infection counts?

image

As we can see here, first we had to ensure that the query is not regarding "World" or different continents to find the highest infection counts per country. After skipping them using the "NOT IN" clause, we found out that USA, India, and Brazil were the top three countries suffering from the highest infection counts.

Now, let's take a look at the mortality rate per continent

image

Here we first transformed each column into the right numerical category (instead of String) to have a proper calculation. Specifically, we converted the columns into FLOAT because otherwise the death percentage would be less than 0.001 and result in a complete 0. After the appropriate calculation, we can see from the reuslt, that South America and North America suffered the most from mortality rate, based on their populations. To find this, we compared their maximum death count to their maximum recorded population from our dataset.

About

simple covid19 analysis project using Microsoft SSMS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors