Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. For the following stored procedure, please fill in the missing information in the underlined areas: For the following stored procedure, please fill in the

1. For the following stored procedure, please fill in the missing information in the underlined areas:

For the following stored procedure, please fill in the missing information in the

underlined areas:

create or replace procedure get_items_shipped_capt as

cursor list_items(cid in captain.capt_id%type) is

select item.item_no, ,weight

from item,shipment_line,shipment

where item.item_no =

and shipment_line.shipment_id = shipment.shipment_id

and shipment.capt_id =;

cursor all_captains is

select capt_id from captain;

TB constant char(1) := CHR(9);

begin

for cp inloop dbms_output.put_line(Captain ID: '||cp.capt_id); dbms_output.new_line;

dbms_output.put_line('Item Number'||TB||'Description'||TB||'Weight');

dbms_output.put_line('=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+

=+=+');

for det in list_items() loop

dbms_output.put_line(det.item_no||TB||det.description||TB||

det.weight);

end loop; dbms_output.new_line; end loop;

end;

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

College Accounting Chapters 1-12

Authors: Douglas McQuaig

10th Edition

1439038783, 978-1439038789

More Books

Students also viewed these Accounting questions

Question

2. Information that comes most readily to mind (availability).

Answered: 1 week ago

Question

3. An initial value (anchoring).

Answered: 1 week ago

Question

4. Similarity (representativeness).

Answered: 1 week ago