bit of a novice, so stay with me a minute......
What i need to get in a stored procedure is the equivilant of several access queries.
what im trying to get is a list of customers who havent bought anything in the current month.
Then for all of the customers who havent bought in the current month, show the last six months and their spending.
i have one Movements which shows all orders along with the account code, date and cost,sell.
so lets recap.....
I would like to search for all of the customers who have bought in the last year but not in the current month, and for all those customers show their spending over the previous 6 months.
This is going to called via Excel using ADO running the query then it will be dispayed in a pivot table.
Is this too long...... i think so.
any help would be much appreciated
What i need to get in a stored procedure is the equivilant of several access queries.
what im trying to get is a list of customers who havent bought anything in the current month.
Then for all of the customers who havent bought in the current month, show the last six months and their spending.
i have one Movements which shows all orders along with the account code, date and cost,sell.
so lets recap.....
I would like to search for all of the customers who have bought in the last year but not in the current month, and for all those customers show their spending over the previous 6 months.
This is going to called via Excel using ADO running the query then it will be dispayed in a pivot table.
Is this too long...... i think so.
any help would be much appreciated