You are on page 1of 3

UNIVERSITY INSTITUTE OF ENGINEERING

Subject Name: Database Management System


Subject Code: 21CSH214

Submitted to: Submitted by:


Mamta Arora Mam Name: Ankit Chauhan
UID: 21BCS10522
Section: ON21BCS-704
Group: B

Department of Computer Science & Engineering


Experiment Title – 3.1

1. AIM/OVERVIEW OF THE PRACTICAL:


Introduction and implementation of procedures in pl/sql.

PROBLEM – 1
Create Local procedure to calculate the simple interest by passing the values of
principal, rate and time.

SOLUTION –
create or replace PROCEDURE calc_simp_int(princ IN number,rate IN
number,tim IN number) IS
simp_int decimal(7,2);
BEGIN
simp_int:=(princ*rate*tim)/100;
dbms_output.put_line('Simple interest: '||simp_int);
END;
BEGIN
calc_simp_int(500,5,10);
end;
/
OUTPUT –

LEARNING OUTCOMES (WHAT I HAVE LEARNT):


1. Learnt about basic of SQL.
2. Learnt about Live SQL website and different functions of it.
3. Learnt about procedure in PL/SQL.
4. Learnt about nature and syntax of procedure.
5. Learnt about the programming side of SQL.

EVALUATION GRID:
Sr. No. Parameters Maximum Marks Marks Obtained

1. Worksheet completion including writing learning 8


objectives/Outcomes. (To be submitted at the end
of the day).

2. Viva Voce 10

3. Student Engagement in 12
Simulation/Demonstration/Performance and
Controls

4. Signature of Faculty (with Date): Total Marks


Obtained out of
30:

You might also like