0% found this document useful (0 votes)
9 views1 page

PLSQL 20

plsql cods for some programs

Uploaded by

natheeralbtra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

PLSQL 20

plsql cods for some programs

Uploaded by

natheeralbtra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

PLSQL Practical Questions

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.

5. Write a program using a store block to use exceptional bodies.

6. Write a program using stored blocks to use system-defined exceptional


bodies. (NO_ DATA_FOUND, CURSOR_IS_OPEN,
DUPLICATE_RECORD)

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.

9. Write a function to display the sum of digits in a given number.

10. Write a function to display whether the given no is Armstrong or not.

11. Write a function to display your name in vertical order.

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.

15. Write a user-defined trigger for each row operation.

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.

18. Write a user-defined package.

19. Write a user-defined package with the overloading concept.

20. Write a program a stored procedure to calculate the total Sal of a given deptno.

You might also like