You are on page 1of 13

THAKUR POLYTECHNIC

Diploma In Computer Engineering

SYCO A

THIRD SEMESTER [2020-2021]

GROUP NO-2

SUBJECT: DATABASE MANAGEMENT SYSTEM(22319)

1. Aastha Bhatt(06)
2. Vidhi Chalke(07)
3. Shubham Dandekar(08)
4. Yash Dasouni(09)
5. Ralston D’cruz(10)

Guided by:- Mrs.Smita dandge


MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

CERTIFICATE
This is to certify the following group of students Roll no: 06 to 10 of 3rd semester of
diploma in Computer Engineering (CO) of institute , THAKUR POLYTECHNIC
(CODE:0522) has completed the Micro Project satisfactorily in subject-
DBMS(22319) for the academic year 2020-2021 as prescribed in curriculum.

Place: Enrollment No:_____________


Date: Seat No:___________________

Subject teacher Head of department Principal

Seal
Of Institute
ACKNOWLEDGEMENT

In performing our project, we had to take the help and guideline of some respected
persons, who deserve our greatest gratitude. The completion of this project gives us
much pleasure.

We would like to show our gratitude to Miss. Smita dandge and our respected HOD
Miss. Vaishali Rane, Thakur Polytechnic for giving us a good guideline for project
throughout numerous consultations. We would also like to expand our deepest gratitude
to all those who have directly and indirectly guided us in making this project.

Many people, especially our classmates and team members itself, have made valuable
comment suggestions on this proposal which gave us an inspiration to improve our
assignment. We thank all thank all the people for their help directly and indirectly to
complete our assignment.
PROPOSAL
Microproject proposal
dbms
TITLE: CREATE PL/SQL PROCEDURE FOR
WITHDRAWAL OF AMOUNT IN BANK DATABASE.

BREIF INTRODUCTION :
1. PL/SQL stands for“Procedural Language extensions to the Structured Query
Language”.
2. SQL is a popular language for both querying and updating data in the relational
database management systems (RDBMS).
3. PL/SQL is an embedded language. PL/SQL only can execute in an Oracle
Database.
4. PL/SQL includes procedural language elements such as conditions and loops.
5. It allows declaration of constants and variables, procedures and functions, types
and variables of those types, and triggers. It can handle exceptions (run-time errors).
6. PL/SQL gives high productivity to programmers as it can query, transform, and
update data in a database.

Course outcome :
write Pl/SQL for given database.

Aim of the micro-project :This micro-


project Aims at :
1. Improve the chances of achieving the desired result.
2. Improve productivity and quality of work.
3. Gain a competitive and boost your bottom line .
4. Students will develop industry-orieanted course outcomes.
5. To develop cognitive domain and affected domain of learning outcomes.

Action plan
Sr. Planned Planned Name of
No. Details of activity start date finished date responsible team
members

1. Information search 02/11/2020 04/11/2020 Aastha Bhatt


Vidhi Chalke

2. Making of proposal 04/11/2020 05/11/2020 Shubham Dandekar


Yash Dasouni

3. Group discussion 06/11/2020 10/11/2020 Aastha Bhatt


Vidhi Chalke
Yash Dasouni
Ralston D'cruze
Shubham Dandekar

4. Compilation of report 10/11/2020 14/11/2020 Ralston D’cruze


Aastha Bhatt

5. presentation 01/12/2020 02/12/2020 Yash Dasouni Vidhi


Chalke
Ralston D'cruze
Aastha Bhatt
Shubham Dandekar

Resouces Required:
Sr. no. Name of specifications quantity remarks
resources

1. Google Search engine 1 available


chrome

2. SQL Plus 10g 1 available

3. Computer Intel i3 1 available


system ,8gb ram

4. software oracle 1 available


REPORT
1.0Rationale
In this project we have used one PC for accessing the internet and developing a pl/sql
procedure. The project revolves around the concept of sql and its applications.SQL is
used to communicate with a database. According to ANSI (American National
Standards Institute), it is the standard language for relational database management
systems. SQL statements are used to perform tasks such as update data on a database,
or retrieve data from a database.

Aims / Benefits of the Micro-Project


 SQL is used to communicate with a database.

2.0Course Outcome Achieve

 Write pl/sql for given database


3.0Literature Review :
What is a sql database?
• SQL stands for Structured Query Language
• SQL lets you access and manipulate databases

What is a bank database?


In telecommunications, computing, and information architecture, a data bank or databank is
a repository of information on one or more subjects – a database – that is organized in a
way that facilitates local or remote information retrieval and is able to process many
continual queries over a long period of time.
4.0Actual Methodology Followed

1.We recieved the overview of the project and understood the concept
thoroughly.
2.Collected the information about implementing the concepts of menu driven
programs in the given micro-project.
3.Made the proposal.
4.Built the database of the micro-project and removed the errors.
5.Made the Report.
5.0Actual Resources Used

SR NO NAME OF SPECIFICATIO QUANTI REMARKS


SOURCE N TY
1. Computer System Intel i3, 1 Available
8GB RAM
2. Software1 Windows 10 1 Available

3. Software2 Oracle 10g 1 Available

6.0 Outputs of Micro-Project

COMMANDS
CREATE OR REPLACE PROCEDURE withdrawal_proc IS
account_no_in number(6); bal_in
number(20); current_balance
number(20); BEGIN
select amount_Balance into current_balance from account where account_No
= account_no_in;

if current_balance < bal_in then


dbms_output.put_line('The amount entered is more than the
amount balance'); else
UPDATE account
set amount_Balance = bal_in - current_balance
where account_No = account_no_in; end if;
dbms_output.put_line('Money has been withdrawn successfully');
END;
/

create table account(account_no number(5) primary key,account_account_name


varchar2(10),amount_balance number(10));
INSERT INTO account
VALUES(1,'435678',30000);
INSERT INTO account
VALUES(2,'546837',20000);
INSERT INTO account
VALUES(3,'645738',50000);
INSERT INTO account
VALUES(4,'572385',10000);
INSERT INTO account
VALUES(5,'578573',15000);
INSERT INTO account
VALUES(6,'265117',60000);
INSERT INTO account
VALUES(7,'614171',70000);
INSERT INTO account
VALUES(8,'61515',50000); INSERT
INTO account
VALUES(9,'51417',20000);
INSERT INTO account
VALUES(10,'62516',40000);

create table customer(customer_no number(5) primary key,customer_name


varchar2(10),amount_balance number(10));
INSERT INTO customer
VALUES(1,'shawn',4000);
INSERT INTO customer
VALUES(2,'rohit',2000);
INSERT INTO customer
VALUES(3,'joseph',1000);
INSERT INTO customer
VALUES(4,'donald',3000);
INSERT INTO customer
VALUES(5,'romeo',6000); INSERT
INTO customer
VALUES(6,'varun',5000);
INSERT INTO customer
VALUES(7,'vidhi',6500);
INSERT INTO customer
VALUES(8,'ralston',7500); INSERT
INTO customer
VALUES(9,'aastha',6000);
INSERT INTO customer
VALUES(10,'ronit',4000);

OUTPUT :

SQL> CREATE OR REPLACE PROCEDURE withdrawal_proc(account_no_in IN NUMBER(6), bal_in IN


NUMBER(20))
2
3 IS
4 current_balance number(20);
5 BEGIN
6 select Amount_Balance
7 into current_balance
8 from Accounts
9 where Account_No = account_no_in;
10 if current_balance < bal_in then
11 dbms_output.put_line('The amount entered is more than the amount balance');
12 else
13 update Accounts
14 set Amount_Balance = bal_in - current_balance
15 where Account_No = account_no_in;
16 end if;
17 dbms_output.put_line('Money has been withdrawn successfully');
18 END;
19 /
----------------------------------------------------------------------------------------------------------------------------------------

SERIAL_NO ACCOUNT_NO TOTAL_AMOUNT


------------------- ---------------------- ----------------------
1 435678 30000
2 546837 20000
3 645738 50000
4 572385 10000
5 573578 15000
6 723588 60000
7 285487 70000
8 265888 50000
9 762578 20000
10 826882 40000

ACCOUNT_NO CUSTOMER_NAME WITHDRWAL_AMOUNT


------------------- --------------------------- ----------------------------------
1 shawn 4000
2 rohit 2000
3 joseph 1000
4 donald 3000
5 romeo 6000
6 varun 5000
7 vidhi 6500
8 ralston 7600
9 aastha 6000
10 ronit 4000

7.0 Skill Developed/ Learning outcome of this Micro-Project:

We learnt to use ORACLE and sql database. Studied how to create a successfully
running database in computer using sql language and procedure of withdrawal of amount
from a bank.

8.0Applications of this Micro-Project:


With the help of this micro-project we created PL/SQL procedure for
withdrawal of amount from bank database.
Roll Numbers of the Team Members Names of the Team members
06 Aastha Bhatt
07 Vidhi Chalke
08 Shubham Dandeker
09 Yash Dasouni
10 Ralaston D’cruze

Mrs. Smita Dandge


(Subject teacher)

You might also like