Hi,
I have a table MyTable with the followind Data
Month Week Price
1 1 10
1 1 12
1 2 16
1 2 20
1 3 12
1 4 16
I need to apply this formula (Avg price of W2 - Avg price of W1) and put the result in a temp table and do the same for W4 and W3
So the temp table will be of the following form
Month Week Price
1 ResW1W2 7
1 ResW3W4 4
Any suggestion?
Thanks
I have a table MyTable with the followind Data
Month Week Price
1 1 10
1 1 12
1 2 16
1 2 20
1 3 12
1 4 16
I need to apply this formula (Avg price of W2 - Avg price of W1) and put the result in a temp table and do the same for W4 and W3
So the temp table will be of the following form
Month Week Price
1 ResW1W2 7
1 ResW3W4 4
Any suggestion?
Thanks
Comment