Question: Q 4 . ( 1 5 points ) Dynamic SQL . This question uses table EMP. Below are the codes of a package specification (

Q4.(15 points) Dynamic SQL. This question uses table EMP.
Below are the codes of a package specification (finished) and part of the package body (unfinished).You are required to finish the procedure (codes) that accepts the emp number (empno) as IN parameter, retrieves the ename and sal to populate the record variable as the out parameter.
After having compiled the package and the package body, write a PL/SQL block program. In the block, the program will declare a variable of the Emp_Rec data type defined in the package. The program will run "EXECUTE IMMEDIATE" for the dynamic string:
'BEGIN Emp_pkg.Get_Emp_Rec (7839,
:dummyplaceholder ); END;';
You need to use the corresponding bind argument for the placeholder in the USING clause.
Then your program will display the result.
 Q4.(15 points) Dynamic SQL. This question uses table EMP. Below are

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!