Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
20c6789
Delete KrediBasvurusu.sql
msewal Feb 5, 2025
67e8c88
Add tblSigorta table for storing insurance details
msewal Feb 10, 2025
0c16d8e
Add transaction-related database views
msewal Feb 25, 2025
5645e68
Update views.sql to data/views.sql
msewal Feb 25, 2025
a7ffe38
Add transaction-related database views
msewal Feb 25, 2025
2d881ce
Add transaction management triggers
msewal Feb 25, 2025
ce9f301
Add indexes to optimize transaction queries
msewal Feb 25, 2025
b1c8349
Add stored procedures for handling transactions
msewal Feb 25, 2025
8fe6424
Delete schema/transaction.sql
msewal Feb 25, 2025
87edace
Add 'alter' and 'drop' statements for db schema updates
msewal Feb 25, 2025
e49b9f7
Add procedures for handling financial transactions
msewal Feb 25, 2025
9f94775
Add views to simplify complex transaction data retrieval
msewal Feb 25, 2025
0496ca3
Add scripts for altering schema and dropping unnecessary tables
msewal Feb 25, 2025
aab77d7
Add stored procedures for managing database transactions
msewal Feb 25, 2025
c450f53
Add initial database tables and schema definitions
msewal Feb 25, 2025
0840139
Add select queries to retrieve transaction data from the db
msewal Feb 25, 2025
3a27f51
Add scripts for updating and deleting transaction records
msewal Feb 25, 2025
09e3736
Contains credit card-related information
msewal Feb 26, 2025
5a9352f
Manages loan payment details
msewal Feb 26, 2025
db39c12
Defines customer records
msewal Feb 26, 2025
01d66b7
Contains employee records
msewal Feb 26, 2025
421135a
Delete data/views.sql
msewal Feb 26, 2025
46b1461
Update and rename data folder to PopulatedData
msewal Feb 26, 2025
8f37a9e
Delete PopulatedData directory
msewal Feb 26, 2025
2d78c3f
Contains credit card-related information
msewal Feb 26, 2025
d2c8db3
Update README.md
msewal Feb 26, 2025
acb55da
Update README.md
msewal Feb 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions KrediBasvurusu.sql

This file was deleted.

59 changes: 58 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,58 @@

# BankDBSQL - Turkish Version

## 📌 Project Overview
This repository contains SQL scripts for managing a banking database system in Turkish. The database includes tables for customers, accounts, transactions, loans, and other banking operations.

## 📂 Project Structure
**BankDBSQL-turkish-version/**
```bash
│── README.md # Project documentation
│── data/ # Contains table data insertion scripts
│ ├── Hesap.sql # Account management
│ ├── Iletisim.sql # Customer contact details
│ ├── Islem.sql # Transaction history
│ ├── KrediBasvurusu.sql # Loan applications
│ ├── KrediKarti.sql # Credit card details
│ ├── KrediOdeme.sql # Loan payment records
│ ├── Musteri.sql # Customer details
│ ├── MusteriProfil.sql # Customer profiles
│ ├── Personel.sql # Bank staff details
│ ├── Sigorta.sql # Insurance data
│ ├── Sikayet.sql # Customer complaints
│ ├── Sube.sql # Bank branches
│── schema/ # Contains database structure scripts
│ ├── alter-drop.sql # Modify and drop tables
│ ├── create-tables.sql # Table creation
│ ├── index.sql # Indexes for performance
│ ├── select.sql # Example queries to retrieve data from the database
│ ├── stored-procedure.sql # Stored procedures
│ ├── transaction.sql # Transaction handling
│ ├── trigger.sql # Triggers for automation
│ ├── update-delete.sql # SQL script to modify and delete records
│ ├── views.sql # View definitions

```

## 🚀 How to Use
### 1. Clone the repository:
```sh
git clone https://github.com/msewal/BankDBSQL-turkish-version.git
cd BankDBSQL-turkish-version
```
### 2. Setup the database:
* Run **_create-tables.sql_** to create the required tables.
* Use scripts from the **_data/_** directory to insert sample records.
* Execute **_index.sql_** to optimize database queries.
* If needed, run **_stored-procedure.sql_** and **_trigger.sql_** for additional functionality.
### 3. Testing Queries:
* Use **_select.sql_** to execute example queries and retrieve data.
* Modify **_update-delete.sql_** to test SQL commands for updating and deleting records.

## 📌 Features
* ✅ Structured banking database schema
* ✅ SQL scripts for various banking functionalities
* ✅ Stored procedures, triggers, and transactions for automation

## 📬 Contact
🐙 GitHub: [https://github.com/msewal/BankDBSQL/tree/turkish-version](https://github.com/msewal/BankDBSQL/tree/turkish-version)
121 changes: 0 additions & 121 deletions data/ATMIslemleri.sql

This file was deleted.

27 changes: 27 additions & 0 deletions data/KrediKarti.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
INSERT INTO tblKrediKarti (KrediKartiID, MusteriID, KartNumarasi, KartTipi, SonKullanmaTarihi, CVV, Limit, KullanilabilirLimit)
VALUES
(1, 1, '1234567812345678', 'Visa', '2027-12-31', '123', 15000.00, 12500.00),
(2, 2, '2345678923456789', 'MasterCard', '2026-11-30', '456', 12000.00, 10000.00),
(3, 4, '3456789034567890', 'Visa', '2025-10-31', '789', 18000.00, 15000.00),
(4, 5, '4567890145678901', 'Troy', '2028-05-31', '234', 20000.00, 17500.00),
(5, 7, '5678901256789012', 'Visa', '2027-03-31', '345', 10000.00, 9500.00),
(6, 9, '6789012367890123', 'MasterCard', '2026-07-31', '567', 15000.00, 12500.00),
(7, 10, '7890123478901234', 'Visa', '2025-09-30', '678', 14000.00, 12000.00),
(8, 41, '8901234589012345', 'MasterCard', '2024-12-31', '890', 13000.00, 11000.00),
(9, 43, '9012345690123456', 'Visa', '2026-06-30', '901', 17000.00, 15000.00),
(10, 44, '0123456701234567', 'Troy', '2027-04-30', '112', 16000.00, 14000.00),
(11, 46, '1234567812345670', 'Visa', '2025-01-31', '223', 12000.00, 11000.00),
(12, 47, '2345678923456780', 'MasterCard', '2026-03-31', '334', 15000.00, 12500.00),
(13, 49, '3456789034567896', 'Visa', '2027-08-31', '445', 18000.00, 16500.00),
(14, 50, '4567890145678900', 'Troy', '2028-09-30', '556', 20000.00, 17500.00),
(15, 46, '5678901256789000', 'Visa', '2027-11-30', '667', 15000.00, 14000.00),
(16, 5, '6789012367890011', 'MasterCard', '2026-10-31', '788', 20000.00, 18500.00),
(17, 9, '7890123478901112', 'Visa', '2028-12-31', '899', 10000.00, 9500.00),
(18, 43, '8901234589012223', 'MasterCard', '2025-06-30', '999', 18000.00, 17500.00),
(19, 44, '9012345690123334', 'Visa', '2027-02-28', '111', 12000.00, 11500.00),
(20, 41, '0123456701234445', 'Troy', '2024-05-31', '222', 16000.00, 15500.00),
(21, 2, '1234567812345556', 'Visa', '2026-11-30', '333', 20000.00, 18000.00),
(22, 4, '2345678923456667', 'MasterCard', '2027-09-30', '444', 15000.00, 13500.00),
(23, 10, '3456789034567778', 'Visa', '2028-03-31', '555', 14000.00, 13000.00),
(24, 7, '4567890145678889', 'Troy', '2029-07-31', '666', 18000.00, 16000.00),
(25, 1, '5678901256789990', 'Visa', '2025-01-31', '777', 10000.00, 8500.00);
30 changes: 30 additions & 0 deletions data/KrediOdeme.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
INSERT INTO tblKrediOdeme (OdemeID, BasvuruID, OdemeTarihi, OdemeMiktari, KalanBorc)
VALUES
(1, 1, '2023-02-05', 2000.00, 48000.00),
(2, 1, '2023-03-05', 2000.00, 46000.00),
(3, 2, '2023-02-06', 1500.00, 28500.00),
(4, 2, '2023-03-06', 1500.00, 27000.00),
(5, 4, '2023-02-08', 1800.00, 38200.00),
(6, 4, '2023-03-08', 1800.00, 36400.00),
(7, 5, '2023-02-09', 2000.00, 33000.00),
(8, 5, '2023-03-09', 2000.00, 31000.00),
(9, 7, '2023-02-11', 2500.00, 57500.00),
(10, 7, '2023-03-11', 2500.00, 55000.00),
(11, 9, '2023-02-13', 2000.00, 43000.00),
(12, 9, '2023-03-13', 2000.00, 41000.00),
(13, 10, '2023-02-14', 2000.00, 38000.00),
(14, 10, '2023-03-14', 2000.00, 36000.00),
(15, 11, '2023-02-15', 2500.00, 47500.00),
(16, 11, '2023-03-15', 2500.00, 45000.00),
(17, 13, '2023-02-17', 1500.00, 28500.00),
(18, 13, '2023-03-17', 1500.00, 27000.00),
(19, 14, '2023-02-18', 2000.00, 68000.00),
(20, 14, '2023-03-18', 2000.00, 66000.00),
(21, 16, '2023-02-20', 2500.00, 57500.00),
(22, 16, '2023-03-20', 2500.00, 55000.00),
(23, 17, '2023-02-21', 2000.00, 43000.00),
(24, 17, '2023-03-21', 2000.00, 41000.00),
(25, 19, '2023-02-23', 2500.00, 47500.00),
(26, 19, '2023-03-23', 2500.00, 45000.00),
(27, 20, '2023-02-24', 2000.00, 38000.00),
(28, 20, '2023-03-24', 2000.00, 36000.00);
Loading