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

  Question 1 write a query to display the last name

question 1 write a query to display the last name department number and salary of any employee whose department number

  Statement to display the sku, sku_description

write an sql statement to display the SKU, SKU_Description, WareHouse ID, and QuantityOnHand for all products having a QuantityOnOrder equal to 0. Sort the results in descending order by WareHouse ID and in ascending order by SKU

  Write a script that uses two variables

Write a script that uses two variables to store (1) the count of all of the products in the Products table and (2) the average list price for those products. If the product count is greater than or equal to

  Trigger named products_insert

Create a trigger named Products_INSERT that inserts the current date for the DateAdded column of the Products table if the value for that column is null. Test this trigger with an appropriate INSERT statement.

  Can we offer an example of a query

Can we offer an example of a Query in which we can use a parentheses to affect the order of execution in which the WHERE Clause has both AND and OR Logical Operators?

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Write a trigger and two test sql statements

Write a trigger and two test sql statements. The first statement should succeed and the second statement should fail (i.e., the second statement violates the constraint and your trigger must block it and issue an error message).

  Write a program in towers of hanoi

How to write a program in towers of hanoi using pl/sql language

  Decomposition for r = (a,b,c,d,e )

Give a good decomposition for R = (A,B,C,D,E ) with the following functional dependencies:

  Stored procedure named spinsertcategory

Write a script that creates and calls a stored procedure named spInsertCategory. First, code a statement that creates a procedure that adds a new row to the Categories table. To do that

  Review problem and run required statement to create table

Please note that for "Table Employees" due to length of the table description and page size limit, I have broken it into 2 parts for better visibility, please make sure to use all the given attributes from the table.

  Accumulate the amount of each order immediately

Information Presenting Component. Accumulate the amount of each order immediately after the items being added into the cart. For that you need to retrieve the price of a product item from PRICE_LIST in order to calculate the amount by price*quanti..

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