Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ASSIGNMENT 6-7: Calculating an Order's Tax Amount Create a function named TAX_CALC_SF that accepts a basket ID, calculates the tax amount by using the basket

image text in transcribed
ASSIGNMENT 6-7: Calculating an Order's Tax Amount Create a function named TAX_CALC_SF that accepts a basket ID, calculates the tax amount by using the basket subtotal, and returns the correct tax amount for the order. The tax is determined by the shipping state, which is stored in the BB_BASKET table. The BB_TAX table contains the tax rate for states that require taxes on internet purchases. If the state isn't listed in the tax table or no shipping state is assigned to the basket, a tax amount of zero should be applied to the order. Use the function in a SELECT statement that displays the shipping costs for a basket that has tax applied and a basket with no shipping state

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

California Algebra 1 Concepts Skills And Problem Solving

Authors: Berchie Holliday, Gilbert J. Cuevas, Beatrice Luchin, John A. Carter, Daniel Marks

1st Edition

0078778522, 978-0078778520

More Books

Students also viewed these Mathematics questions

Question

Aristotle of ideal state features?

Answered: 1 week ago

Question

Regulation of normal activities of the human heart take place?

Answered: 1 week ago