J
John Topley
How do I do the following:
I want a Discount table which contains a quantity (or quantity range)
and associated discount. For example -
Qty Discount
3-5 2%
6-10 5%
11-20 7%
etc
When an order is entered I want to obtain the appropriate discount %
and apply it to the price of the ordered product (and/or add to an
Order Detail record). Assume there is an Order Table, Product Table
and Order Detail table; the latter is a junction table relating Orders
and Products.
So how do (can) I select the appropriate row in the Discount table
based on the product order quantity?
Thanks in advance.
John
I want a Discount table which contains a quantity (or quantity range)
and associated discount. For example -
Qty Discount
3-5 2%
6-10 5%
11-20 7%
etc
When an order is entered I want to obtain the appropriate discount %
and apply it to the price of the ordered product (and/or add to an
Order Detail record). Assume there is an Order Table, Product Table
and Order Detail table; the latter is a junction table relating Orders
and Products.
So how do (can) I select the appropriate row in the Discount table
based on the product order quantity?
Thanks in advance.
John