K
KyleAK
I am trying to create a basic query that will calculate a sum of sales
for the past 12 months (that will roll each month as the month
changes). I am having some trouble accomplishing this with our current
table structure:
PART DESCRIP JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC YEAR
0001 Part #1 0 25 80 14 17 0 0 0 0 0 0 0
2006
0001 Part #1 2 20 32 45 68 32 53 29 36 83 0 4
2005
0001 Part #1 9 14 46 72 53 27 57 32 54 23 19 14
2004
So, for example, since this is May 2006, the query should grab and
total sales for each PART from May 2005 through April 2006.
Any suggestions would be greatly appreciated! Thanks a million!
for the past 12 months (that will roll each month as the month
changes). I am having some trouble accomplishing this with our current
table structure:
PART DESCRIP JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC YEAR
0001 Part #1 0 25 80 14 17 0 0 0 0 0 0 0
2006
0001 Part #1 2 20 32 45 68 32 53 29 36 83 0 4
2005
0001 Part #1 9 14 46 72 53 27 57 32 54 23 19 14
2004
So, for example, since this is May 2006, the query should grab and
total sales for each PART from May 2005 through April 2006.
Any suggestions would be greatly appreciated! Thanks a million!