Professional Documents
Culture Documents
Dfadsdsds
Dfadsdsds
Dfadsdsds
use BANK
go
INSERT INTO bank values ('city branch', 'HBL', 'Main Raiwind Road Lahore',1)
select*from bank
-----------------------------------------------------OK------------------------
----------------------------Creation of bank branches--------------------------
INSERT INTO branch values ('1', 'HBL', 'Main Raiwind Road Lahore')
select*from branch
------------------------OK-----------------------------------------------------
----------------------------Creation Of client manager--------------------------
Create table Client_Manager
(
cm_ID int primary key,
cm_Name varchar (20),
cm_Add varchar (20),
branchId int foreign key references (branchId)
);
INSERT INTO Client_Manager values ('7','Ali','Faisal town',1);
select*from client_manager
------------------------OK-----------------------------------------------------
----------------------------Creation Of clients--------------------------
select*from clients
----------------OK-------------------------------------------------------------
----------------------------Creation Of Accounts--------------------------
);
select*from Accounts
-----------------------------------------------------------OK------------------
----------------------------Creation Of deposit money--------------------------
);
select*from Deposit
-----------------------------------------------------------------------------
----------------------------Creation Of withdraw----ok----------------------
select*from Withdraw
-----------------------------------------------------------------------------
----------------------------Creation Of transactions----ok----------------------
(
transaction_ID int primary key,
Ac_ID int,
transaction_type varchar (20),
transaction_amount int,
Acc_ID int foreign key references Accounts (Acc_ID)
);
select*from Transactions
-----------------------------------------------------------------------------
----------------------------Loan----ok----------------------
create table loan
(
loanamount int,
loantype varchar(50)
);
insert into loan values (50000, 'organizational loan')