DBMS_Practical
DBMS_Practical
CO3: Construct triggers, procedures, function, packages and cursors using PL/SQL.
Oracle Installation.
Create tables according to the following definition
1. Give name of customer having living city Bombay and branch city Delhi.
School of Computer Science & Information Technology, DAVV, Indore
2. Give name of customers having same living city as their branch city.
3. Give names of customers who are borrowers as well as depositors and having living
city Nagpur.
4. Give names of customers who are depositors and having the same branch city as
that of Sunil.
5. Give the names of depositors having the same city as that of Shivani and having
deposit amount greater than 2000.
6. Give the names of borrowers having deposit amount greater than 1000 and the loan
amount greater than 2000.
7. Give names of depositors having the same branch as the branch of sunil.
8. Give names of borrowers having loan amount greater than the loan amount of Anil.
9. Give the names of customers living city where branch of depositor sunil is located.
10. Give loan no and loan amount of borrower having the same branch as that of
depositor sunil.
11. Give loan no., loan amount, account no. and deposit amount of customers living in
city Nagpur.
12. Give loan no., loan amount , account no. and deposit amount of customers having
deposit branch located in Delhi
13. Give loan no., loan amount, account no., deposit amount, branch name, branch city
and living city of Pramod.
14. Give deposit details and loan details of customer in the city where Pramod is living.
15. Give name of depositors having the same branch city as that of sunil and having the
same living city as that of Anil.
16. Give names of depositors having amount greater than 1000 and having the same
living city as Pramod.
17. Give city of customer having the same branch city as that of Pramod.
18. Give branch city and living city of Pramod.
19. Give branch city of Sunil or branch city of Anil.
20. Give the living city of Anil and living city of Sunil.
Set operations
1. List all the customers who are depositors but not borrowers.
2. List all the customers who are both depositors and borrowers.
3. List all the customers, along with their amount, who are either borrowers or
depositors and living in city Nagpur.
4. List all the depositors having in all the branches where Sunil is having account.
5. List all the customers living in city Nagpur and having branch city Bombay or Delhi.
6. List all the depositors living in city Nagpur.
7. List all the depositors living in city Nagpur and having branch in city Delhi.
8. List the branch cities of Anil and Sunil.
9. List the borrowers having branch city same as that of Sunil.
10. List the customer having deposit greater than 1000 and loan less than 10000.
11. List the borrowers having branch city same as that of Sunil.
12. List the cities of depositors having branch VRCE.
School of Computer Science & Information Technology, DAVV, Indore
13. List the depositors having the same living city as that of Sunil and the same branch
city as that of Anil.
14. List the depositors having amount less than 8000 and living in the same city as Ms.
Shivani.
15. List all the customers who are both depositors and borrowers and living in the same
city as Anil.
16. List all the cities where branches of Anil and Sunil are located.
17. List all the customer names and the amount for depositors living in the city where
either Anil or Sunil is living.
18. List the amount for the depositors living in the city where Anil is living.
19. List the cities which are either branch city of Anil or living city of Sunil.
20. List the customers who are borrowers and depositors and having living city Bombay
and branch city same as that of Sandip.
21. List the customers who are both borrowers and depositors and having the same
branch city as that of Anil.
Reference Book(s):
Online Resources:
1. https://onlinecourses.nptel.ac.in/noc22_cs91
2. https://onlinecourses.swayam2.ac.in/cec19_cs05