Olympic History

About

This project followed tutorial SQL project from techtfq Youtube channel with few modifications, using dataset about Olympic history (2 excel files) from Kaggle. This project contained 20 questions made by that channel.

Questions

  1. How many olympics games have been held?
  2. List down all Olympics games held so far.
  3. Mention the total no of nations who participated in each olympics game?
  4. Which year saw the highest and lowest no of countries participating in olympics?
  5. Which nation has participated in all of the olympic games?
  6. Identify the sport which was played in all summer olympics.
  7. Which Sports were just played only once in the olympics?
  8. Fetch the total no of sports played in each olympic games.
  9. Fetch details of the oldest athletes to win a gold medal.
  10. Find the Ratio of male and female athletes participated 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 olympics. Success is defined by no 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 games.
  16. Identify which country won the most gold, most silver and most bronze medals in each olympic games.
  17. Identify which country won the most gold, most silver, most bronze medals and the most medals in each olympic games.
  18. Which countries have never won gold medal but have won silver/bronze medals?
  19. In which Sport and event, Indonesia has won highest medals.
  20. Break down all olympic games where Indonesia won medal for Badminton and how many medals in each olympic games.

SQL Concepts Applied in Queries

Queries used in this project included aggregate, common table expression (CTE), join table values, join dataset, having clause, rank, row number, case statement, and partition by.