# 1) write a simple PL/SQL program to get sum of 2 numbers declare a number(10):=1; b number(10):=2; d number(10); begin d=a+b; dbms_output.

put_line('the sum of two number is: ' d); end; 2) write a simple PL/SQL program to declare age as constant with the value of 34 , declare the other variable and increment it with age and display the result o f the incremented variable declare age number(3):=34; v_count number(10):=0; begin for i in 1..age loop v_count :=v_count+1; dbms_output.put_line('the incremented variable is :' v_count); end loop; end;

3) write a PL/SQL program to find biggest of 2 numbers (if else) 4) write a PL/SQL program to find the percentage and grade for the students. note: if percentage is >90 , grade A between 80 and 90, grade B between 70 and 80, grade C otherwise, grade D (if else or case) 5) write a PL/Sql program to display numbers from 1 to 10 (simple loop) 6) write a PL/Sql program to display the even numbers between 2 numbers (simple loop) 7) write a PL/Sql program to print square of a number (for loop) --8) write a PL/sql program to convert number to words --9) write a pl/sql program to display the * in the foloowing sequence * * * * * * * * * * * * * * note: should give the limit for the 1st row and last row 10) write a PL/Sql 11) write a PL/Sql e table 12) write a PL/Sql loyee 13) write a PL/Sql attributes) 14) write a PL/Sql 30% for deptno 10, 15) write a PL/Sql 16) write a PL/Sql ptno 17) write a PL/Sql program to get maximum of salary from employee table program to get maximum of salary in every deptno from employe program to display empno, ename, total salary for a given emp program to get all the details for the employee 'SCOTT' (type program to update the salary of the employee by 10%, 20% and 20 and 30 respectively program to insert the values into dept table program to delete the rows from employee table for a given de program to print the sysdate

type.of rows affec ted and display the appropriate message. if we pass or dont pass the paramter while opening the cursor 27) write a PL/SQL program to display the employee details for each dept (cursor inside the cursor) 28) write a PL/SQL program to display employee details ( cursor for loops) 29) write a PL/SQL program to display employee details for a given dept by passi ng parameter to cursor in for loop 30) write a PL/SQL program to increment the salary by 10 and display the no. then display the emp details otherwise display no emp exists (use exceptions) 20) write a PL/Sql program to prompt for the stdid and should check for the stud ent whether it exists in the table or not.of updated records c) if delete. then display ' ' records deleted success fully if 1 row deleted the display ' ' record deleted successfully 37) write a procedure to copy data from emp table to emp_bkp. note: should not allow all these operations in non working hours 23) write a PL/SQL program to display the contents of the dept table (cursors an d table rowtype) 24) write a PL/SQL program to display the contents from 2 tables (cursors and cu rsor rowtype) 25) write a PL/SQL program to display the contents of employee table for a given deptno by passing parameters to cursor(parameterized cursors) 26) the above program should work for either cases. if exists. then increment the age with 10 otherwise insert the values for th at student (use exceptions) 21) write a PL/Sql program to prompt for the empno and should check for the emp whether it exists in the table or not. if not exists then insert the data into emp_bkp. if more than 1 and 0 rows affected. if exists. then update the salary with the given salary if the salary is les s than CEO salary otherwise insert the values for that employee (raise exception s) 22) write a PL/SQL program which should prompt id.of recor ds before and after delete. if exists. if more than 1 and 0 rows affected. then display ' ' records updated success fully if 1 row updated. a) If type as insert. name. then delete the record based on id and display the no.of r ows updated 31) write a PL/SQL program to display the contents for the given table (ref curs ors with if else) 32) write a PL/SQL program to display the contents for the given table (ref curs ors without if else) 33) write a procedure to get sum of 2 numbers and write pl/sql block 34) write a procedure to insert a record into student table and display the stat us message 35) write a procedure to update the name and age based on id and get the no. age. then write a PL/Sql program to insert the v alues into the table using sequence 19) write a PL/Sql program to prompt for the empno and should check for the emp whether it exists in the table or not.of r ows affected and display the appropriate message.of rows aff ected .18) create a table and the sequence. if the record with same id exists then update the values of all columns with the values in emp tab le. b) if update. the display ' ' record updated successfully 36) write a procedure to delete the row based on id and get the no. then update the name and age based on id and display the no. then insert a record into student table provided the s ame record exists then exception. find out the no.

of employees in employee table write a function to get no. difference 2 numbers and nultiplication of 2 numbers .38) 39) 40) 41) of write a function to get sum of 2 numbers write a function to get no.of employees in employee table using ref cursors write a package which includes the function for sum of 2 numbers.