G
Guest
I need to calculate the daily discounts given by salesmen on the products
they sell. I have an order details table with item #, quantity sold, price
per unit(actual price charged by salesman),total and date.
I have an inventory table with prices in 5 columns p1,p2,p3,p4 and p5. The
price that is supposed to be used is determined by the quantity sold. Each
price field has an associated quantity range stored in to separate fields.
P1LL, and P1UL. So say for pricing level 1 on a particular product a
quantity of 1-5 will qualify the customer for level one pricing.
I need a query that can calculate the difference between what the salesman
should have charged and what they actually charged, taking into account the
quantity discounts that we have listed in our inventory table.
they sell. I have an order details table with item #, quantity sold, price
per unit(actual price charged by salesman),total and date.
I have an inventory table with prices in 5 columns p1,p2,p3,p4 and p5. The
price that is supposed to be used is determined by the quantity sold. Each
price field has an associated quantity range stored in to separate fields.
P1LL, and P1UL. So say for pricing level 1 on a particular product a
quantity of 1-5 will qualify the customer for level one pricing.
I need a query that can calculate the difference between what the salesman
should have charged and what they actually charged, taking into account the
quantity discounts that we have listed in our inventory table.