/olympic-data-analysis

This project organized by Hi Counselor

Primary LanguagePython

Unlocking Olympic Data: SQL Insights into Decades of Games

In this project, a dataset of 120 years of Olympics history was analyzed. The given dataset was cleaned and analyzed to mine informational insights using Python and MySQL.

Project Description

The focus of this project was on analyzing the dataset of 120 years of Olympics history using SQL queries. The dataset consisted of two tables: "dataset_olympics.csv" and "noc_region.csv". The "dataset_olympics" table contained information about athletes, their teams, the Olympic Games they participated in, and the medals they won. The "noc_region" table was used to provide the mapping between the National Olympic Committee codes (NOC) and the corresponding regions. The dataset was cleaned using Python and Pandas to ensure data quality. In module 2, SQL queries were written to extract insights based on the given questions.

Module 1: Data Pre-processing using Python

Task 1. Data cleaning for dataset_olympics

Task 2. Data cleaning for noc_regions

Task 3. Generate tables using the cleaned dataset

Module 2. Analysing Data using SQL

Task 1. How many olympics games have been held?

Task 2. List down all Olympics games held so far. Order the result by year.

Task 3. Mention the total no of nations who participated in each olympics game?. Order the results by games.

Task 4. Which nation has participated in all of the olympic games? and order the output by first column which is fetched

Task 5. How many unique athletes have won a gold medal in the Olympics?

Task 6. Which Sports were just played only once in the olympics? and Order the output by Sports. output should include number of games and games.

Task 7. Fetch the total no of sports played in each olympic games. Order by no of sports by descending.

Task 8. Fetch oldest athletes to win a gold medal

Task 9. Top 5 athletes who have won the most gold medals. Order the results by gold medals in descending.

Task 10. Top 5 athletes who have won the most medals (gold/silver/bronze). Order the results by medals in descending.

Task 11. Top 5 most successful countries in olympics. Success is defined by no of medals won.

Task 12. In which Sport/event, India has won highest medals.

Task 13.Break down all olympic games where india won medal for Hockey and how many medals in each olympic games and order the result by no of medals in descending.