Section B - EXCEPTION HANDLING TASK 1 Write a PL/SQL block to retrieve employees from the ENEW table based on their sala

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Section B - EXCEPTION HANDLING TASK 1 Write a PL/SQL block to retrieve employees from the ENEW table based on their sala

Post by answerhappygod »

Section B Exception Handling Task 1 Write A Pl Sql Block To Retrieve Employees From The Enew Table Based On Their Sala 1
Section B Exception Handling Task 1 Write A Pl Sql Block To Retrieve Employees From The Enew Table Based On Their Sala 1 (38.75 KiB) Viewed 43 times
Before you begin, create the ENEW table using the following statement:
CREATE TABLE ENEW AS SELECT * FROM EMP;
Section B - EXCEPTION HANDLING TASK 1 Write a PL/SQL block to retrieve employees from the ENEW table based on their salary. If there are multiple employees earning the same salary (i.e. returns more than one row), handle the exception with the appropriate handler and print the message "More than one employee with the same salary". If there are no employees earning that salary, handle the exception with the appropriate handler and display the message "No employees with this salary". If there is only one employee with this salary, then print that employee's name, hiredate and salary (predefined server exception problem).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply