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

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  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.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

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