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.
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
|