0% found this document useful (1 vote)
241 views7 pages

Aakash

The document describes a bank database that stores customer, account, loan, and transaction information. The database includes tables for customers, accounts, loans, and transactions. It stores details like customer ID, name, address, account number, type (savings, fixed, etc.), date opened, loan amount, date, and linked account. The document provides examples of SQL queries to retrieve specific information from these tables, such as listing savings accounts, customers with loans over $50k, changing a customer's name, accounts with deposits over $80k, number of fixed accounts, transactions on a date, totals deposited/withdrawn on a date, and customers with loans.

Uploaded by

Shivanshmehr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
241 views7 pages

Aakash

The document describes a bank database that stores customer, account, loan, and transaction information. The database includes tables for customers, accounts, loans, and transactions. It stores details like customer ID, name, address, account number, type (savings, fixed, etc.), date opened, loan amount, date, and linked account. The document provides examples of SQL queries to retrieve specific information from these tables, such as listing savings accounts, customers with loans over $50k, changing a customer's name, accounts with deposits over $80k, number of fixed accounts, transactions on a date, totals deposited/withdrawn on a date, and customers with loans.

Uploaded by

Shivanshmehr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 7

Bank Database :

DBMS Assignment

A bank database keeps record of the details of customers, accounts, loans and
transactions such as deposits or withdraws. Customer record should include
customer id, customer name, address, age, contact number, email id etc.,
accounts details involves account number, account type(fixed account, savings
account, monthly account etc), date of creation of the account. Transaction detail
keeps information about amount deposited or withdrawn to/from a particular
account and the date of transaction. The database should also store record of
loans which include loan amount, loan date and the account number to which the
loan is granted.
Make appropriate tables for the above database and try to find out the
following queries:
The required table based on the above database is shown below :

a) List the details of account holders who have a savings account.


Ans.
The processor for preparing all the queries is almost same (except question 3).
Their common method is given below:Open the prepared wizard in MS Access.
Select the queries option from Database wizard.
Select create query by using wizard.
Choose the required fields from Available Fields box.
Click on Next option.
Now select Modify the query design option.
Click on Finish option.
Make the required changes in Select Query wizard.
At last, save the changes and close the dialog box.

b) List the Name and address of account holders with loan amount more than
50,000.
Ans.

c) Change the name of the customer to ABC whose account number is


TU001
Ans.
Open the prepared wizard in MS Access.
Select your prepared table in Database wizard.
Choose Replace option from Edit menu or press Ctrl + H.

Replace the name of customer having account number TU001


to ABC.
Save the changes and click on OK.

d) List the account number with total deposit more than 80,000.
Ans.

e) List the number of fixed deposit accounts in the bank


Ans.

f) Display the detailed transactions on 28th Aug, 2008


Ans.

g) Display the total amount deposited and withdrawn on 28h Aug, 2008.
Ans.

h) List details of customers who have a loan.


Ans.

You might also like