GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - andreamorasal/bank-fraud-snowflake-sql: Bank fraud and customer behaviour analytics using Snowflake SQL. Includes data profiling, transaction analysis, customer segmentation and fraud pattern investigation.

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
screenshots
screenshots
 
 
sql
sql
 
 
.gitattributes
.gitattributes
 
 
README.md
README.md
 
 

Repository files navigation

Bank fraud detection & customer analytics šŸ¦

Project overview

This project uses Snowflake SQL to analyse banking transaction data, explore customer behaviour and investigate patterns associated with fraudulent activity. It combines data exploration, customer analytics and fraud pattern analysis to demonstrate how SQL can transform raw data into meaningful insights that support business decisions and financial risk analysis.

The project is organised into three analytical modules, covering data profiling, customer behaviour and fraud patterns.

Project objectives

  • Assess transaction data quality and understand the structure of the dataset.
  • Measure transaction volumes, customer counts and overall fraud rates.
  • Explore customer spending patterns, demographics and account characteristics.
  • Compare fraud rates across payment methods, device types, merchant categories and age groups.
  • Investigate potential temporal patterns in fraudulent transactions.

šŸ› ļø Tech stack

  • Snowflake: Cloud data platform for querying and analysing banking data.
  • SQL: Data exploration, aggregation, profiling and analytical queries.
  • GitHub: Version control and project documentation.

šŸ“‚ Project Structure

bank-fraud-snowflake-sql/
ā”œā”€ā”€ screenshots/
│   ā”œā”€ā”€ data_profiling.png
│   ā”œā”€ā”€ fraud_overview.png
│   └── fraud_patterns.png
ā”œā”€ā”€ sql/
│   ā”œā”€ā”€ 01_data_exploration_profiling.sql
│   ā”œā”€ā”€ 02_customer_behavior.sql
│   └── 03_fraud_pattern_analysis.sql
ā”œā”€ā”€ .gitignore
└── README.md

šŸ“Š Analysis performed

1. Data exploration & profiling

SQL file: sql/01_data_exploration_profiling.sql

This module examines the dataset's structure, transaction activity and data quality.

The analysis includes:

  • Total transactions, unique customers and fraudulent transactions.
  • Overall fraud percentage.
  • Top 10 countries by transaction volume.
  • Top 10 cities by transaction value.
  • Data profiling, including distinct values and null counts by column.
  • Transaction distribution by payment method, device type and merchant category.

Data Profiling

2. Customer behaviour analytics

SQL file: sql/02_customer_behavior.sql

This module explores customer spending patterns, demographics and account characteristics.

The analysis includes:

  • Top 20 customers by total transaction amount.
  • Average transaction amount across five age groups: 18–25, 26–35, 36–50, 51–65 and 65+.
  • Fraud rates across age groups.
  • Identification of customers with high balances, low transaction frequency and potentially dormant accounts.
  • Average account balance and credit score by country.

3. Fraud pattern analysis

SQL file: sql/03_fraud_pattern_analysis.sql

This module investigates how fraudulent activity varies across transaction characteristics and time periods.

The analysis includes:

  • Fraud rates by merchant category.
  • Fraud rates by payment method.
  • Fraud rates by device type.
  • Distribution of fraud types by transaction count and percentage.
  • Comparison of fraudulent transactions during night versus day.
  • Comparison of fraudulent transactions on weekends versus weekdays.

Fraud Overview

Fraud Pattern Analysis

Skills demonstrated

  • SQL querying and data aggregation
  • Data exploration and profiling
  • Data quality assessment
  • Percentage calculations and fraud rate analysis
  • Customer segmentation and behavioural analytics
  • Demographic and geographic analysis
  • Pattern identification and comparative analysis
  • Snowflake data analysis
  • Translating business questions into analytical queries

Business value

The analysis explores how transaction characteristics, customer behaviour and demographic segments relate to fraudulent activity. These insights can help inform further investigation, support fraud risk monitoring and improve understanding of transaction patterns.

The results are intended for analytical exploration and do not independently establish whether a transaction or customer is fraudulent.

About this project

This project demonstrates my practical application of SQL and Snowflake to a financial analytics use case. It combines structured data exploration with customer behaviour analysis and fraud pattern investigation, reflecting my interest in using data to understand business problems and support evidence based decision making.

About

Bank fraud and customer behaviour analytics using Snowflake SQL. Includes data profiling, transaction analysis, customer segmentation and fraud pattern investigation.

Topics

customer-analyticscustomer-segmentationdata-analysisdata-analyticsdata-profilingfinancial-analyticsfinantialfraud-detectionsnowflakesql

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.