Print a single formatted record with no errors please - Set echo on - Set up a spool file to receive your output for submission. I would suggest c:\cs4210\WA4spool.txt . -  SET SERVEROUTPUT ON - DECLARE a record variable (Emp_rec) using %ROWTYPE - In the BEGIN block use INTO to load a record into the declared variables for HR.EMPLOYEES for Employee_ID = 114 - Use a CASE statement to print the associated Department Name for Department_ID -  Add DBMS_OUTPUT lines to print each variable for the selected record - Use TO_CHAR to format Salary as 999,999.00 - Add an EXCEPTION block to report when no data is found - Compile and run the procedure - Close the spool file

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter9: Completing The Basics
Section9.2: Exceptions And File Checking
Problem 2E
icon
Related questions
Question

Print a single formatted record with no errors please

- Set echo on

- Set up a spool file to receive your output for submission. I would suggest c:\cs4210\WA4spool.txt .

-  SET SERVEROUTPUT ON

- DECLARE a record variable (Emp_rec) using %ROWTYPE

- In the BEGIN block use INTO to load a record into the declared variables for HR.EMPLOYEES for Employee_ID = 114

- Use a CASE statement to print the associated Department Name for Department_ID

-  Add DBMS_OUTPUT lines to print each variable for the selected record

- Use TO_CHAR to format Salary as 999,999.00

- Add an EXCEPTION block to report when no data is found

- Compile and run the procedure

- Close the spool file

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Files and Directory
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr