Greetings,
I am a SQL noob. I am working in Access.
I am moving a spreadsheet that housed the sales/commission data to Access.
The commission is paid out in a stair-step type of plan; i.e. $1 to $100 = 10% $101 to $500 = 20%.
Your sales YTD amount places you in the bracket. The bracket percent is multiplied by the individual sale.
I need a query that will show me the sales person, the sales amount, the date of the sale, that sales persons YTD per sale.
Example:
Bob $1000 05/02/04 $1000
Bob $2000 05/06/04 $3000
Tom $500 05/01/04 $500
Tom $1000 05/02/04 $1500
I have tried using DSUM and some add-in. They came kinda close but no cigar.
I have tried to have a qry that did a running sum on the totals of each RSM then used a sub qry but that didn't work either.
Please help. Thanks
I am a SQL noob. I am working in Access.
I am moving a spreadsheet that housed the sales/commission data to Access.
The commission is paid out in a stair-step type of plan; i.e. $1 to $100 = 10% $101 to $500 = 20%.
Your sales YTD amount places you in the bracket. The bracket percent is multiplied by the individual sale.
I need a query that will show me the sales person, the sales amount, the date of the sale, that sales persons YTD per sale.
Example:
Bob $1000 05/02/04 $1000
Bob $2000 05/06/04 $3000
Tom $500 05/01/04 $500
Tom $1000 05/02/04 $1500
I have tried using DSUM and some add-in. They came kinda close but no cigar.
I have tried to have a qry that did a running sum on the totals of each RSM then used a sub qry but that didn't work either.
Please help. Thanks