Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

19BCT0169 VL2019205001679 Ast05

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

Name: HARSHIT JADLI

REGISTRATION NUMBER:19BCT0169
Exercise 5
Aim: To know the usage of different sequential, conditional control
structures, iterations,
procedures and functions in PL/SQL blocks.

1. Write a function to find out average, maximum and minimum


salary for a given Department name.
2. Write a function to find the factorial of the given number.

3. Write a PL/SQL block to find the greatest of three numbers.


4. Write a PL/SQL block to print even number ranging between 1 and 100 in reverse order.

5. Write a PL/SQL block to change address of a particular employee by taking his/her


employee number interactively.
6. Write a PL/SQL block to display number of employees for each department.

7. Write a program to delete employee details who are having age


>60.
8. Write a PL/SQL block to display employees who are top three
earners in the company.

9. Write a PL/SQL to delete the records whose basic salary <20000


from Employee table.
10. Write a PL/SQL code to print the employee’s cadre based
on their basic scales as given below
Basic Scale Cadre
Salary Cadre
45000 Manager
35000 Supervisor
25000 Worker

You might also like