Skip to content

This is a SQL based Project. In this Project i used queries to answer questions about the data

Notifications You must be signed in to change notification settings

etemi1/PostGresSQL-OlympicsHistory-Maven-Challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

PostGres-Olympics-Case-Study

120 Years of Olympic History

Historical data on the modern Olympic Games, from Athens 1896 to Rio 2016. Each row corresponds to an individual athlete competing in an individual event, including the athlete's name, sex, age, height, weight, country, and medal, and the event's name, sport, games, year, and city.

About the dataset

This dataset contains 2 tables, in CSV format:

The Athlete Events table contains over 270,000 Olympic performances across history Each record represents an individual athlete competing in an individual event Records contain details about the athlete (ID, sex, name, age, height, weight, country) and the event (games, year, city, sport, event, medal) The Country Definitions table serves as a lookup table with “NOC” as the primary key Each record represents one country according to the National Olympic Committee

Recommended Analysis

How Many sports did both genders participate in 2006

Screenshot (84)

Analyze and visualize the % of athletes who were female over time.

Result!

Screenshot (74)

Then another Query to check the total number of females and males to get an idea of the percent of the genders. Screenshot (71)

Finally to See the percentage of female and male over time ---- percentage of female and male athlethes

with cte as

( select cast(count(id) as float) as total_athlete from olympics_history ) select sex, case when sex = 'M' THEN round(cast((count(*)/cte.total_athlete )100 as numeric),2) when sex = 'F' THEN round(cast((count()/cte.total_athlete)*100as numeric),2) end as athlete_percentage from olympics_history,cte group by sex, cte.total_athlete order by cte.total_athlete desc

Screenshot (73)

Compare and contrast the summer and the winter games...

How many athletes compete?

Screenshot (75)

How many countries compete?

Screenshot (76)

TOP 5 athlete that won the most gold medals

Screenshot (77)

Analyze and visualize country-level trends...

Which countries send the most athletes to the olympics?

Uploading Screenshot (85).png…

Do they also tend to win the most medals?

Screenshot (86)

The Youngest Person from country asides USA that has won the most Gold

Screenshot (87)

View Codes in the file from this repo and to see other queries i performed

About

This is a SQL based Project. In this Project i used queries to answer questions about the data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published