You are on page 1of 1

DBMS LAB ASSIGNMENT 5

1. Write a PL/SQL program to determine the given number is even or odd. 2. Write a PL/SQL program to find the factorial of any given number. 3. Write a PL/SQL program that explains the functioning of pre-defined Exception. 4. Write a PL/SQL program that explains the functioning of user-defined Exception. 5. Write a PL/SQL program to calculate area of circle for a value of radius varying from 2 to 10. Store the radius and their corresponding values of calculated area in a table. 6. Write a PL/SQL code block that will accept an account number from the keyboard. Check if the user balance is less than the minimum balance, only then deduct Rs 100/from the balance. 7. Write a PL/SQL clock of code for inverting a number 5639 to 9365. 8. Create a cursor that has information about employees name and their salary. Then print the information (name and salary) on the console. 9. Create a view of employee table for department number 10 and then display all the contents of that view. 10. Write a PL/SQL program for implementing Arithmetic operation (simple Calculator). 11. Write a PL/SQL code block that first inserts a single record in an emp table. Update the salary of any one employee with 1000 Rs. Then check to see that total salary does not exceed 50000 Rs and if the total salary is greater than 50,000 then undo the update made.

12. Write a user-defined function to find the square function of any given number.

Himanshu Pathak Faculty - DBMS

You might also like