Hi all, this is my first post and I want to reconstruct one table in access but not sure how to do it,
My current Table look like
Customer Sales Month
A 1 190001
B 1 190001
A 2 190002
B 2 190002
Because the sales data is accumulated (reset every January), I want to recreate with monthly sales.
Customer Sales Month
A 1 190001
B 1 190001
A 1 190002
B 1 190002
Therefore the step should be
1) For every year Jan (xxxx01), the sales will be same
2) For other months, the sales will be deducted with the previous month sales to get the month sales figure.
But I am not sure how to use SQL to create such table, and the table need to rerun everytime I have new data coming in.
Can anyone teaches me how to do that?
Thanks.
My current Table look like
Customer Sales Month
A 1 190001
B 1 190001
A 2 190002
B 2 190002
Because the sales data is accumulated (reset every January), I want to recreate with monthly sales.
Customer Sales Month
A 1 190001
B 1 190001
A 1 190002
B 1 190002
Therefore the step should be
1) For every year Jan (xxxx01), the sales will be same
2) For other months, the sales will be deducted with the previous month sales to get the month sales figure.
But I am not sure how to use SQL to create such table, and the table need to rerun everytime I have new data coming in.
Can anyone teaches me how to do that?
Thanks.