I would like to write a sql statement that groups sales based on a range of values of a separate commission tier schedule.
So basically there would be two tables, the sales table and the commission rate table.
for example the sales person has three tier rates:
5% commission at sales 10,000-20,000
10% commission at sales 20,000-30,000
30% commssion at sales 30,000-1,000,000
the Statement would output
Each row would be SalesTotal,Rate,CommissionTotal
It seems like SQL should be able to do this, i just don't know how... any ideas?
Mark P.
Providing Low Cost Powerful Point of Sale Solutions.
So basically there would be two tables, the sales table and the commission rate table.
for example the sales person has three tier rates:
5% commission at sales 10,000-20,000
10% commission at sales 20,000-30,000
30% commssion at sales 30,000-1,000,000
the Statement would output
Each row would be SalesTotal,Rate,CommissionTotal
It seems like SQL should be able to do this, i just don't know how... any ideas?
Mark P.
Providing Low Cost Powerful Point of Sale Solutions.