Beginner Level5 Tables

Banking Database SQL Tutorial

Banking system with branches, customers, accounts, transactions and loans. Practice balance queries, fraud detection and transaction analytics.

🎯 What you'll practice: Customer records, Account balances, Transaction history, Loan tracking using real-world database scenarios.

📊 Database Tables

branches

Core banking data table

customers

Core banking data table

accounts

Core banking data table

transactions

Core banking data table

loans

Core banking data table

🔍 Common Query Patterns

Customers with Branch Name

List customers and their branch using a JOIN

SELECT c.first_name, c.last_name, b.branch_name
FROM customers c
JOIN branches b ON c.branch_id = b.branch_id
ORDER BY c.last_name;
Try Now →

Total Balance by Account Type

Sum balances grouped by account type

SELECT account_type,
SUM(balance) as total_balance
FROM accounts
GROUP BY account_type
ORDER BY account_type;
Try Now →

Ready to practice the concepts?

Continue in SQL Topics, where every exercise is owned by a clear SQL concept and an independently verified dataset contract.