Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mastermindromii/sql-case-study-on-olympics-games

This repository contains information about dataset and case study I performed on 120 years of Olympics history(1896-2016).
https://github.com/mastermindromii/sql-case-study-on-olympics-games

Last synced: 9 days ago
JSON representation

This repository contains information about dataset and case study I performed on 120 years of Olympics history(1896-2016).

Awesome Lists containing this project

README

        

# Case Study on 120 Years of Olympics Data

I conducted a comprehensive case study on a dataset that contained information about all Olympic games played from Athens 1896 to Rio 2016. The dataset includes two main tables: `olympics_history` and `noc_regions`.

## Dataset Information

- **Dataset Source:** [Kaggle - 120 Years of Olympic History (Athletes and Results)](https://www.kaggle.com/datasets/heesoo37/120-years-of-olympic-history-athletes-and-results)
- **Tables:**
- `olympics_history`: Individual athlete information in Olympic events.
- `noc_regions`: National Olympics participant and their regions.

## Dataset Overview

- **athlete_events.csv:**
- Total Rows: 271117
- Total Columns: 15
- Each row corresponds to an individual athlete competing in an Olympic event.

| Column | Description |
|--------|-------------|
| ID | Unique number for each athlete |
| Name | Athlete's name |
| Sex | M or F |
| Age | Integer |
| Height | In centimeters |
| Weight | In kilograms |
| Team | Team name |
| NOC | National Olympic Committee 3-letter code |
| Games | Year and season |
| Year | Integer |
| Season | Summer or Winter |
| City | Host city |
| Sport | Sport |
| Event | Event |
| Medal | Gold, Silver, Bronze, or NA |

- **noc_regions:**
- Total Rows: 231
- Total Columns: 3

| Column | Description |
|--------|-------------|
| NOC | National Olympic Committee 3-letter code |
| Region | Region name |
| Notes | Additional information about the region |

## 20 Questions in which i used advance SQL Topics

From the dataset, I explored the following 20 questions utilizing MySQL:

1. How many Olympic games have been held?
2. List down all Olympic games held so far.
3. Mention the total number of nations that participated in each Olympic game.
4. Which year saw the highest and lowest number of countries participating in the Olympics?
5. Which nation has participated in all of the Olympic games?
6. Identify the sport played in all Summer Olympics.
7. Which sports were played only once in the Olympics?
8. Fetch the total number of sports played in each Olympic game.
9. Fetch details of the oldest athletes to win a gold medal.
10. Find the ratio of male and female athletes participating in all Olympic games.
11. Fetch the top 5 athletes who have won the most gold medals.
12. Fetch the top 5 athletes who have won the most medals (gold/silver/bronze).
13. Fetch the top 5 most successful countries in the Olympics based on the number of medals won.
14. List down total gold, silver, and bronze medals won by each country.
15. List down total gold, silver, and bronze medals won by each country corresponding to each Olympic game.
16. Identify which country won the most gold, silver, and bronze medals in each Olympic game.
17. Identify which country won the most gold, silver, bronze medals, and the most medals in each Olympic game.
18. Which countries have never won a gold medal but have won silver/bronze medals?
19. In which Sport/event did India win the highest number of medals?
20. Break down all Olympic games where India won a medal for Hockey and the number of medals in each Olympic game.