'Implement a stored PL/SQL procedure

Task 2 (5.0 marks) Stored PL/SQL procedure Implement a stored PL/SQL procedure PARTSUPPLIER that lists information about the supplier key and supplier name supplying parts. The procedure first computes the total number of suppliers supplying the specified part. The procedure then extracts the supplier’s information supplying the specified part. The information to be displayed include the part key, part name, the supplier key and the supplier’s name. An example of a segment of the output for the list of suppliers supplying a specified part (part 59396) is as follow: part key: 59396, orange cream sandy lavender drab Number of suppliers supplying the part: 4

supplier Key supplier Name
 166 Supplier#000000166
 935 Supplier#000000935
 1704 Supplier#000001704
 2397 Supplier#000002397

It is up to you to decide if you want to handle exception in your procedure. Deliverables Submit your spooled file solution2.lst (or solution2.pdf) that contains your SQL script and the output from the execution of the script. The report must have no errors related to the implementation of your task and it must list all PL/SQL and SQL statements processed. Remember to set ECHO option of SQL*Plus to ON!



Solution 1:[1]

At least provide some sample data to check the issue

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Heather Dante