Skip to content

KrishPatel1205/International-Debt-Analysis-Using-SQL-Data-Analytics

Repository files navigation

International Debt Analysis Using SQL Data Analytics

SQL PostgreSQL Python Jupyter Status License

This project analyzes international debt statistics across countries using SQL and Python to extract insights into global borrowing patterns. The analysis focuses on identifying high-debt countries, debt distribution trends, and key financial indicators using structured queries and data analytics techniques.

📁 Dataset

  • Source: International Debt Statistics (CSV format)
  • Data Stored In: PostgreSQL
  • Table Name: international_debt

Table Schema

CREATE TABLE international_debt
(
  country_name VARCHAR(50),
  country_code VARCHAR(50),
  indicator_name TEXT,
  indicator_code TEXT,
  debt NUMERIC
);

Data Import

\copy international_debt
FROM 'international_debt.csv'
DELIMITER ','
CSV HEADER;

🛠️ Tech Stack

  • Python
  • PostgreSQL
  • SQL
  • Pandas
  • Jupyter Notebook

🔍 Project Objectives

  • Store structured financial data using SQL
  • Analyze international debt across countries and indicators
  • Identify countries with the highest total debt
  • Understand debt distribution across economic indicators
  • Perform aggregation and ranking using SQL queries
  • Combine SQL with Python for analysis and reporting

📊 Analysis Performed

✔️ Database & SQL Analysis

  • Created relational table schema for international debt data

  • Imported large CSV data into PostgreSQL

  • Used SQL queries with:

    • SUM, AVG, MAX
    • GROUP BY, ORDER BY
    • Filtering by country and indicators
  • Ranked countries based on total debt

  • Analyzed debt contribution by indicator type


📈 Key Insights

  • Identified countries with the highest accumulated debt
  • Highlighted indicators contributing most to global debt
  • Observed significant variation in debt distribution across regions
  • Demonstrated how SQL can be effectively used for financial analysis at scale

🚀 How to Run the Project

  1. Create the PostgreSQL table using the provided SQL script
  2. Import the CSV file into the database
  3. Open the Jupyter Notebook
  4. Run SQL queries and analysis cells

🏁 Conclusion

This project showcases the practical application of SQL and Python for analyzing global financial datasets. The insights derived can help understand international borrowing patterns and demonstrate how structured data analytics supports informed financial decision-making.

About

This project analyzes international debt statistics across countries using SQL and Python to extract insights into global borrowing patterns. The analysis focuses on identifying high-debt countries, debt distribution trends, and key financial indicators using structured queries and data analytics techniques.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors