You are on page 1of 8

A

Practical Activity Report


Submitted for
Database Management System (UCS310)

Name: Roll No.:


Nikhil Sharma 101715096
BE Third Year
Submitted
to:

Dr Anshul Parashar
Electronics and
Communication Department
TIET, Patiala

Jan – May 2020

Assignment 7
Q1. Write a PL/SQL code of a local procedure that accepts two numbers and return its addition,
subtraction, multiplication and division or in other words write a procedure to return multiple
values through parameters.
Q2 Write a PL/SQL code of a local procedure raise_salary, which accepts two parameters empid
and bonus. It increases the salary of the employee by passed value of bonus and update it to the
database.
Q3 Write a PL/SQL code of a Stored procedure that accepts two numbers and return addition,
subtraction, multiplication and division of two numbers.
Q4 Write a PL/SQL code to create a stored procedure fire_employee to delete employee on the
basis of passed employee number. Also call this stored procedure.

Q5. Write a PL/SQL code for local function to return balance of the customer on the basis of
account number which is passed to this local function as its parameter. CUST(acc_no, name,
balance)
Q6 A PL/SQL code to write local function to return total number of employees in EMP table.

Q7. A PL/SQL code to create a stored function to add two numbers. Call this stored function.
Q8. Write a PL/SQL code to create a stored function to find total salary paid to employees of a
particular department number. The department number is passed as parameter to the stored
function. EMP (eno, ename, job, salary, deptno)

You might also like