Skip to content

ag48665/sql-data-analysis-portfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SQL Banking & Fraud Analytics Portfolio

This project demonstrates SQL skills for data analyst, financial analyst, fraud analyst, and risk analytics roles.

The repository uses a synthetic banking dataset to analyze customer behavior, banking KPIs, fraud indicators, customer segmentation, and transaction activity using SQL and SQLite.


Project Overview

The project simulates a banking environment with:

  • customer profiles
  • bank accounts
  • transaction history
  • fraud risk scenarios
  • financial KPIs

The analysis focuses on identifying high-risk transactions, customer segments, and valuable customers using SQL queries.


Tools & Technologies

  • SQL
  • SQLite
  • DB Browser for SQLite

SQL Skills Demonstrated

  • CREATE TABLE
  • INSERT INTO
  • JOINs
  • GROUP BY
  • CASE WHEN
  • CTEs
  • Window Functions
  • Ranking Functions
  • KPI Calculations
  • Fraud Detection Analysis
  • Customer Segmentation

Database Structure

customers

Contains customer demographic information, annual income, occupation, and credit score.

accounts

Contains account balances, account types, and account opening dates.

transactions

Contains transaction history, payment channels, merchants, and locations.


Business Questions

  • Which customers generate the highest transaction value?
  • Which transactions may indicate fraud risk?
  • What customer segments exist based on income and credit score?
  • What are the key banking KPIs by account type?
  • Which customers should be reviewed for higher financial risk?

Example Analyses

Banking KPI Analysis

Analyzes account balances and account distribution by account type.

Banking KPI Analysis


Fraud Detection Analysis

Identifies suspicious transactions based on transaction type and transaction amount.

Fraud Detection


Customer Segmentation

Segments customers into financial and risk categories.

Customer Segmentation


Window Function Analysis

Calculates running transaction totals for customer activity monitoring.

Window Function Analysis


Customer Transaction Ranking

Ranks customers by total transaction value.

Customer Ranking


CTE Analysis

Identifies high-value customers using Common Table Expressions (CTEs).

CTE Analysis


Repository Structure

sql-data-analysis-portfolio/
│
├── README.md
├── finance_risk_portfolio.db
├── sql/
│   └── banking_analysis.sql
│
└── screenshots/
    ├── create_tables.png
    ├── fraud_detection.png
    ├── kpi_analysis.png
    ├── customer_segmentation.png
    ├── customer_transaction_ranking.png
    ├── cte_analysis.png
    └── window_function_analysis.png

Author

Agata Gabara

Data Analytics | SQL | Finance | Risk Analytics | Cybersecurity

About

This project analyzes synthetic banking data to identify customer segments, transaction patterns, fraud risk indicators, and key financial KPIs using SQL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors