Create a procedure named basket

Assignment Help PL-SQL Programming
Reference no: EM13690029

Solve this problem using SQL queries.

Question: After a shopper completes an order, a procedure is called to update the following columns in the Basket table: orderplaced, subtotal, shipping, tax and total.

The value 1 entered in the ordereplaced column indicates that the shopper has completed an order. Inputs to the procedure are the basket id and amounts for the subtotal, shipping,, tax, and total.

1. Create a procedure named basket_confirm_sp that accepts the input values specified in the preceding description.

Keep in mind that you're modifying an existing row of the bb_basket table in this procedure.

Call the procedure with the following parameter values: 17, 64.80, 8.00, 1.94, 74.74.

As mentioned, these values represent the basket ID and the amounts for the subtotal, shipping, tax and total.

Design the procedure and implement in SQL.

Reference no: EM13690029

Questions Cloud

How many bananas would be needed to power a 100 w light bulb : Problem- If all of the energy from decay of the 40-K in one banana could be captured and converted into electrical energy, how many bananas would be needed to power a 100 W light bulb
Need a console program : Need a console program that repeatedly prompts the user to enter data until they type done (any case, Upper, Lower, or Mixed).
What are spectator ions and what effect do they have : Problem- 100 ml of buffer is made using 0.041 moles of HC2H3O2 (acetic acid) and 0.038 moles of NaC2H3O2 (sodium acetate). The Ka of acetic acid is 1.8 x 10-5 using the above equation, what is the pH of this solution
Mole of h3po4 assume h3po4 has 3 h+ ions per molecule : Problem- How many moles of H+ or OH- ions are there in 3 moles of H2SO4? In 0.2 mole of NaOH? In 1 mole of H3PO4 assume H3PO4 has 3 H+ ions per molecule
Create a procedure named basket : After a shopper completes an order, a procedure is called to update the following columns in the Basket table: orderplaced, subtotal, shipping, tax and total.
Calculate the theoretical yield and percent yield : A reaction was performed in which 0.30 mL of 3,7-dimethyl-3-octanol was reacted with concentrated hydrochloric acid to make 0.25 g of 3-chloro-3,7-dimethyloctane. 1) Calculate the theoretical yield and percent yield for this reaction.
Calculate the entropy change per mole of gas : Problem- Consider a process in which an ideal gas is compressed to one-fifth of its original volume at constant temperature. Calculate the entropy change per mole of gas.
Determine the formula unit of kanoite : Problem- In the pyroxene kanoite the formula unit has two SiO3 2- units and is balanced by manganese and magnesium ions. Determine the formula unit of kanoite. Assume that the oxidation state of Mn is +2.
Explain what is the outgoing temperature of water : the southern United States, where the temperature of tap water is too warm to be a useful cooling agent. If 6.10 mol/min of 79.0°F tap water flows into a pre-chiller capable of removing 97.0 J/s, what is the outgoing temperature of water

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  You have been asked to design a data model

Law Associates is a large legal practice based in Sydney. You have been asked to design a data model for the practice based upon the following specification

  Create a pivottable on a new worksheet using the data

Use the data on the Christensen worksheet in the range A1:J19 to create a PivotChart on a new sheet. Use the Type, Issue Price, and Est. Value fields and the default locations. Find the average issue price and average estimated value.

  Script that creates and calls a stored

Write a script that creates and calls a stored procedure named spInsertProduct that inserts a row into the Products table. This stored procedure should accept five parameters

  Business transaction that involves multiple tables

Write a business transaction that involves multiple tables and implement it using PL/SQL. Use at least one Function or Procedure in your code. The transaction may retrieve data from the database and display the result, or it may insert/update data in..

  Write a pl/sql block and declare a variable v_sal

Write a PL/SQL block and declare a variable  v_sal  of the type NUMBER. Include the following statement in the Execution section:

  Draw an entity-relationship diagram

Draw an Entity-Relationship Diagram (ERD) for the data storage requirements of a business described in the case study and Data Model Transformation.

  Write sql statement to add new record to part table

Write SQL statement which creates the stored procedure which adds new record to the Part table, and returns value of newly created PartID PK value in out parameter.

  Script that creates and calls a function named

Write a script that creates and calls a function named fnDiscountPrice that calculates the discount price of an item in the OrderItems table (discount amount subtracted from item price). To do that, this function should accept one parameter for th..

  Create a form that enables a librarian to enter the details

When the database is set up it should be populated with the data that you have chosen. Display this data as part of your documentation. Each table should have from 3 to 6 records initially.

  Pl-sql block to display last name and salary

Write a PL/SQL block that displays the last name and salary of the following people. Each of these can be done separately as PL/SQL, first to test and get the output lines then encapsulated.

  Display account number and balance for all customers

This assessment item is designed to test your understanding of arrays/arraylists, objects, classes, methods, sorting and searching.

  Create report to display scr courses in alphabetical order

Create the detail report which will display all SCR courses in alphabetical order, with a course name and instructor name in the group header.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd