Assignment#7
Assignment#7
Note: For taking values from user’s you can use &variable name.
(Interactive inputs by sql* plus)
2) Write a cursor to insert increment details for employees into INCR table(columns empno, IncrAmt) and
update his incremented salary in EMP table as per following criteria:
✦ All SALESMAN get 15 % increment.
✦ All ANALYST get 10 % increment.
✦ Remaining employees get an increment of 500.
3) Using PL/SQL block and cursor display the employee data as follow:
10 ACCOUNTS NEW YORK
5) Write a PL/SQL code to update the salary of employees with employee numbers as 7639 and 7989 by
20% and 15% respectively. Handle the error encountered if the employee does not exists