Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PL/SQL - Exception A new rule requires all employees with job ID as SH_CLERK (shipping clerk), their minimal salary will be $2,599. Write and run
PL/SQL - Exception
A new rule requires all employees with job ID as SH_CLERK (shipping clerk), their minimal salary will be $2,599. Write and run a PL block to go over each employee with job ID as SH_CLERK.
In this anonymous program, we will define a cursor to retrieve employee ID and their salary for those, their job_id = 'SH_CLERK'.
If their salary is equal or greater than 2500, then it is fine;
otherwise, the program will raise an exception as defined Sal_too_low. In this exception handler, print out a message with the info of the employee ID and the current salary amount.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started