This project explores customer segmentation in banking using simulated Nigerian banking data. By analyzing transaction patterns and account activity, the aim is to identify valuable customer segments, detect dormant accounts, and support data-driven marketing strategies.
By leveraging SQL queries on realistically simulated datasets, this analysis mimics real-world banking data environments and prepares for financial data roles requiring strong SQL and business understanding.
- Identify high-value customers based on transaction volume and frequency
- Analyze salary payment trends and dormant accounts
- Understand customer product usage and segmentation by account type
- Perform regional analysis of customer activity and value across Nigerian cities
- Provide actionable insights to support targeted banking strategies
Since access to real banking data is restricted, this project uses simulated datasets designed to mimic real-world Nigerian banking data. The data includes:
- Customers: 200 customers with realistic Nigerian/African first and last names, randomly assigned genders, birthdates between 1970 and 1997, and cities representing Nigerian urban centers.
- Accounts: Multiple accounts per customer, each with unique 10-digit account numbers and associated product types (Savings, Current, Fixed Deposit).
- Transactions: Over 1000 transactions randomly distributed across accounts, including debit and credit types with carefully matched descriptions reflecting real banking activities (e.g., salary payments, POS purchases, transfers). Transaction dates span recent years, simulating ongoing customer activity.
The core of this project involves writing advanced SQL queries to extract business insights. Techniques applied include:
- Aggregations (SUM, COUNT, AVG) to measure spending, transaction volumes, and frequency.
- Joins to combine customer, account, and transaction data effectively.
- Window Functions and Grouping Sets to enable detailed segmentation by time, city, and product type.
- Filtering and Date Functions to analyze trends over months and years and identify dormant accounts.
This methodology simulates the end-to-end process of banking data analysis, from raw data preparation to actionable business insights, reinforcing skills essential for financial data roles.
This section summarizes the core insights derived from SQL analysis across customers, accounts, and transactions:
Revealed the top spenders by summing all debit transactions, helping to identify high-value customers with strong transaction volumes.
Tracked monthly salary credit trends, showing consistency in salary disbursements and highlighting months where no salaries were paid — a red flag for economic or payroll anomalies.
Ranked accounts with the highest number of transactions, pointing to highly engaged users.
Identified accounts processing the largest transaction amounts, useful for recognizing premium banking clients.
Offered a month-by-month analysis of transaction counts and volume, providing a clear view of seasonal banking behavior.
Aggregated transaction trends over the years, helping understand long-term banking patterns and growth.
Ranked customers who receive the most inflows — key for relationship management and upselling financial products.
Uncovered accounts with no transactions in the last 12 months — a strategic insight for reactivation campaigns.
Found customers with only one account type — a valuable segment for cross-selling additional financial services.
Measured usage frequency of services (like POS, transfers, salary payments), indicating service adoption and preferred channels.
Compared transaction volumes and activity across cities, helping prioritize branch or market expansion efforts.
Segmented customers and accounts into active vs. dormant groups by region, highlighting geographical strengths and weak points.
🔹 Bonus Insight: Highest Spender Per City
Identified the top spender in each Nigerian city — a hyper-localized view of high-value clients.
This project explored customer segmentation in a simulated retail bank using structured SQL queries and realistic financial data. By analyzing customer behavior, transaction trends, and account activities, we were able to extract meaningful business insights that can guide strategic decisions.
- Identified top spenders and most active accounts by both volume and frequency
- Tracked salary payment trends, revealing seasonal patterns and potential employer engagement opportunities
- Detected dormant accounts and single-product customers, highlighting reactivation and cross-sell opportunities
- Segmented customer engagement by region and city, offering geo-targeted insights for marketing or branch strategy
- Analyzed most used transaction types, informing service prioritization and infrastructure planning
Based on the above insights, here are actionable recommendations for the bank:
-
Target High-Value Customers
Introduce premium services or loyalty rewards to retain top 10–20% of spenders, especially those with consistent credit inflow and multi-channel activity. -
Reactivate Dormant Customers
Launch targeted reactivation campaigns offering incentives to customers inactive for 12+ months. Include dormant regions in outreach efforts. -
Cross-Sell to Single-Product Customers
Customers with only one account type are likely under-leveraged. Recommend savings, investment, or loan products based on behavior. -
Strengthen Presence in Top Cities
Expand marketing or branch coverage in cities with high-value or high-activity customers to consolidate market share. -
Balance Transaction Services
Monitor infrastructure capacity around the most used services (e.g., POS, transfers), while improving underused services like mobile or bill payment. -
Review Salary Payment Gaps
Investigate causes of missing salary transactions in some months and assess impact on liquidity and customer satisfaction. -
Improve Regional Penetration
Use geo-segmentation data to guide branch expansion or digital adoption strategies in underrepresented regions.
This project exemplifies how structured SQL analytics can unlock strategic insights in the banking industry — without requiring advanced tools. It strengthens my ability to build from scratch, think like a financial analyst, and produce insights that matter.