Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Database Management System Lab (BCAC-491)

Date: 21.05.24
Lab Assignment-4

Account ( Ac_No, Branch_Name, Balance)


Branch (Branch_Name, Branch_City, Assets)
Customer (Customer_Name, Customer_Street, Customer_City)
Depositor (Customer_Name, Ac_No)
Loan (Loan_No, Branch_Name, Amount)
Borrower (Customer_Name, Loan_No)

1. Create tables with above schemas.


2. Describe the structure of the tables.
3. Insert 10 rows in each tables.
4. Show the inserted values of the all tables.
5. Find the names of all branches in the loan relation.
6. Find all loan numbers from loan made at the Durgapur branch with loan amount>1200.
7. Find the loan number from loan where amount between 90,000 and 100000.
8. For all customer who have a loan from the bank find their names, loan number and loan
amount.
9. Find the customer name, loan number and amount for all loans at the Kolkata Branch.
10. Find the names of all customer whose street address includes substring GT
11. To list in alphabetic order all customers who have a loan at the Durgapur branch.
12. To find all customers having a loan an account or both at the bank.
13. To find all customers who have both a loan and account at the bank.
14. To find all customers who have an account but loan at the bank.
15. Find the average account balance at the Durgapur branch.

You might also like