L3 Q7 Advanced Level
Practice Question

Level 3 - Question 7: PL/SQL Stored Procedure

Scenario

Your company wants to automate the process of giving a salary raise to employees. You need to create a stored procedure that increases salary by a given percentage for a specific department.

Task

Write a PL/SQL stored procedure named give_raise that accepts a department name and a percentage, then updates all employees in that department with the raise.

Sample Schema: employees

emp_id name department salary
1 John Doe IT 70000
2 Jane Smith IT 65000
3 Mike Johnson HR 55000