Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago