You are on page 1of 5

DBMS

Experiment 9: PL/SQL Procedures and Functions

Name: Bandi Charan

Reg.no: 22bce1618

1. Create the Tables or schemas, Employee(Ename, Eid, Designation, BasicPay, HRA, DA, GrossPay)

2. Write a PL/SQL Procedure to insert records in the Employee table except Grosspay
3. Write a PL/SQL Procedure to update the Grosspay in Employee table Grosspay=
BasicPay+HRA+DA

4. Write a PL/SQL Procedure (ProcDel) to delete the employee working as Clerk


5. Remove the procedure ProcDel

6. Write a PL/SQL function (FunSmall) to find smallest of three numbers.

7. Write PL/SQL function to compute grade using the following criteria a. Mark between 91 and
100 – Grade S b. Mark between 81 and 90 – Grade A c. Mark between 71 and 80 – Grade B d. Mark
between 61 and 70 – Grade C e. Mark between 55 and 60 – Grade D f. Mark between 50 and 54 –
Grade E g. Mark below 50 – Fail
8. Write a PLR/SQL function to find whether the given number is armstorng number or not
9. Remove the function FunSmall

You might also like