G
Guest
Hi,
I have a query from a couple of tables that includes ItemNumber, QtySold,
and SalesPrice. I want to find all instances where a client bought more that
24 of an item and to calculate a 10 percent discount. The discount is only
on the first 24 of items sold unless it reaches 48, 72 or 96. Then it is on
the full amount. So if a client bought 30 of an item that was $10, the
amount sold should be $216 ($240 - $24) + $60 (6 x $10) or $276. If they
bought 48 of the item, the cost would be $432 ($480 - $48). Is there a way
to program a query so that it calculates this?
Thanks,
I have a query from a couple of tables that includes ItemNumber, QtySold,
and SalesPrice. I want to find all instances where a client bought more that
24 of an item and to calculate a 10 percent discount. The discount is only
on the first 24 of items sold unless it reaches 48, 72 or 96. Then it is on
the full amount. So if a client bought 30 of an item that was $10, the
amount sold should be $216 ($240 - $24) + $60 (6 x $10) or $276. If they
bought 48 of the item, the cost would be $432 ($480 - $48). Is there a way
to program a query so that it calculates this?
Thanks,