Documente Academic
Documente Profesional
Documente Cultură
In Application Express
The remaining questions in this practice use a copy of the employees table.
A. Create the copy by executing the following SQL statement:
CREATE TABLE employees_dup AS SELECT * from employees;
DEPARTMENT_ID
Steven
90
Neena
90
Lex
90
Jennifer
10
Shelley
110
William
110
Susan
80
Susan
80
Oracle Academy
Susan
80
Kimberely
More than 10 rows available. Increase rows selector to view more rows.
5. Create a second procedure named pay_raise which changes the salary of all employees in
employees_dup to a new value of 30000. Execute the procedure from an anonymous block,
then SELECT from the table to check that procedure has executed correctly.
SALARY
100
30000
101
30000
102
30000
200
30000
205
30000
206
30000
149
30000
174
30000
176
30000
178
30000
More than 10 rows available. Increase rows selector to view more rows.
Oracle Academy