PLSQL 20
PLSQL 20
1. Write a program using an anonymous block to display ename, job, Sal, of employees in a given deptno
number.
2. Write a program using an anonymous block to display a record of a given employee Number.
3. Write a program using an anonymous block to update salary by rs 1000 for a given Employee.
4. Write a program using a stored block to insert, update, and select a record from a given table.
7. Write a stored block using an explicit cursor to display the records of employees of the same
deptno.
8. Write a stored block using an explicit cursor to update the salary of employees whose salary
is > 2000 and < 4000.
12. Write a function to calculate the percentage of ta, da, and hra of salary for an employee. (Assume
your percentage value to calculate TA, DA, & HRA)
13. Write a function and call it from the stored block through an anonymous block.
14. Write a user-defined trigger to perform before insert, update, and delete operators.
16. Write a user-defined trigger not to allow any operations on a given record.
17. Write a program to create a trigger using: new and old operators.
20. Write a program a stored procedure to calculate the total Sal of a given deptno.