Question: Question 1 : Create a PL / SQL Procedure Using the HR . EMPLOYEES Table Objective: The purpose of this assignment is to develop your
Question : Create a PLSQL Procedure Using the HREMPLOYEES Table
Objective:
The purpose of this assignment is to develop your skills in writing PLSQL procedures in Oracle. You
will create a procedure that allows the user to update the salary of an employee based on their
employee ID and current performance rating.
Requirements:
Procedure Name: UPDATEEMPLOYEESALARY
Procedure Inputs:
PEMPLOYEEID NUMBER the ID of the employee whose salary needs to be
updated.
PPERFORMANCERATING NUMBER the performance rating of the employee a
value between to where is the highest
Procedure Logic:
If the PPERFORMANCERATING is increase the salary by
If the PPERFORMANCERATING is increase the salary by
If the PPERFORMANCERATING is increase the salary by
If the PPERFORMANCERATING is increase the salary by
If the PPERFORMANCERATING is no salary increase.
Update:
The procedure should update the SALARY field in the EMPLOYEES table for the
specified employee.
Output:
After a successful update, display a message: "Salary updated successfully for
Employee ID: PEMPLOYEEID
If no update occurs eg invalid employee ID or rating display an appropriate error
message.
Hints:
You can use the EMPLOYEES table in the HR schema provided by Oracle to test your
procedure.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
