Task 3: Create(Enter) new product by using a Procedure with IN Parameters Follow these steps to create a procedure that allows a company employee to add a new product to the database. This procedure needs only IN parameters. In SQL Developer, create a procedure named PROD_ADD_SP that adds a row for a new product in the BB_PRODUCT table. Keep in mind that the user provides values for the product name, description, image filename (use same template for file name as  ‘roasted.jpg’ or ‘double-roasted.jpg’ ) , price, and active status. Address the input values or parameters in the same order as in the preceding sentence. Call the procedure with these parameter values: ('Roasted Blend', 'Well-balanced mix of roasted beans, a medium body', 'roasted.jpg',9.50,1). Check whether the update was successful by querying the BB_PRODUCT table. -This will be a page where you allow new product information to be entered into Edit box by end user and then there will be INSERT or ADD Product button to save them by calling this Stored Procedure. -And Once your Product add tasks is completed GUI will bring the full product list with newly added one at the below part of your screen -Also there should be only one Product Search capability in the same Page. On the same page,(maybe in different part of your page) open a edit box and accept product name and search based on that product name and bring to list on screen. This below one is a sample screen (You don’t have to make same exact one) Task 4:  Adding Descriptions for Order Status Codes When a shopper returns to the Web site to check an order’s status, information from the BB_BASKETSTATUS table is displayed. However, only the status code is available in the BB_BASKETSTATUS table, not the status description.  We also need Description of order status.   Create a function named STATUS_DESC_SF that accepts a stage ID and returns the status description. The descriptions for stage IDs are listed in below chart. Test the function in a SELECT statement that retrieves all rows in the BB_BASKETSTATUS table for basket 4 and displays the stage ID and its description.   In the GUI, you should have one edit box accept idBasket  as  4 ( or 5)  and then you should find stage ID for this idBasket = 4  and understand and return to GUI description.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter5: Data Manipulation And Transaction Control
Section: Chapter Questions
Problem 19MC
icon
Related questions
icon
Concept explainers
Question
100%

Task 3: Create(Enter) new product by using a Procedure with IN Parameters
Follow these steps to create a procedure that allows a company employee to add a new

product to the database. This procedure needs only IN parameters.

  1. In SQL Developer, create a procedure named PROD_ADD_SP that adds a row for a new

product in the BB_PRODUCT table. Keep in mind that the user provides values for the

product name, description, image filename (use same template for file name as  ‘roasted.jpg’ or ‘double-roasted.jpg’ ) , price, and active status. Address the input values or parameters in the same order as in the preceding sentence.

  1. Call the procedure with these parameter values: ('Roasted Blend', 'Well-balanced

mix of roasted beans, a medium body', 'roasted.jpg',9.50,1).

  1. Check whether the update was successful by querying the BB_PRODUCT table.

-This will be a page where you allow new product information to be entered into Edit box by end user and then there will be INSERT or ADD Product button to save them by calling this Stored Procedure.

-And Once your Product add tasks is completed GUI will bring the full product list with newly added one at the below part of your screen

-Also there should be only one Product Search capability in the same Page. On the same page,(maybe in different part of your page) open a edit box and accept product name and search based on that product name and bring to list on screen.

This below one is a sample screen (You don’t have to make same exact one)

Task 4:  Adding Descriptions for Order Status Codes

When a shopper returns to the Web site to check an order’s status, information from the

BB_BASKETSTATUS table is displayed. However, only the status code is available in the

BB_BASKETSTATUS table, not the status description.  We also need Description of order status.

 

Create a function named STATUS_DESC_SF

that accepts a stage ID and returns the status description. The descriptions for stage IDs

are listed in below chart. Test the function in a SELECT statement that retrieves all rows in the

BB_BASKETSTATUS table for basket 4 and displays the stage ID and its description.

 

In the GUI, you should have one edit box accept idBasket  as  4 ( or 5)  and then you should find stage ID for this idBasket = 4  and understand and return to GUI description.

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Query Syntax
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.
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning