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).
Section B - EXCEPTION HANDLING TASK 1 Write a PL/SQL block to retrieve employees from the ENEW table based on their sala
-
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!