Oracle sql


Complete the following steps to create a procedure to calculate the tax on an order. The BB_TAX table contains the states that require taxes to be submitted for Internet sales. If the state is not listed in the table, then no tax should be accessed on any order. The shopper''s state and basket subtotal are the inputs into the procedure while the tax amount should be returned.

1. Create a procedure called TAX_COST_SP to accomplish the tax calculation task. Keep in mind that the state and subtotal values are inputs into the procedure and the procedure is to return the tax amount. Review the contents of the BB_TAX table, which contains the tax rate for each state that needs to be taxed.

2. Create a host variable named G_TAX to hold the value returned by the procedure.

3. Invoke the procedure using the values of "VA" for the state and $100 for the subtotal.

4. Display the tax amount returned by the procedure (it should be $4.5).

Request for Solution File

Ask an Expert for Answer!!
Database Management System: Oracle sql
Reference No:- TGS0680897

Expected delivery within 24 Hours