If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Monthly Averages
Hia!
How are you friends!! Some help please; I have a 2 column table on Access 2002. One field(ProductsSold) has inetgers and the other dates spread over 2009(DateOfSale); 100000 transactions. I want monthly average product sold per transaction as a query result. The query result will have 2 fields with 12 records. Have a great New Year Friends. |
#2
|
|||
|
|||
Monthly Averages
Nedan,
Assuming that each record in this table is a transaction then you should be able to do: Select Month(DateOfSale) as MonthOfSale, Avg(ProductsSold) as AvgProdPerTrans FROM yourTable WHERE Year(DateOfSale) = 2009 GROUP BY Month(DateOfSale) ---- HTH Dale "Nedan Nedzatra" wrote: Hia! How are you friends!! Some help please; I have a 2 column table on Access 2002. One field(ProductsSold) has inetgers and the other dates spread over 2009(DateOfSale); 100000 transactions. I want monthly average product sold per transaction as a query result. The query result will have 2 fields with 12 records. Have a great New Year Friends. |
#3
|
|||
|
|||
Monthly Averages
Thanks Dale.
Happy New Year Nedan "Dale Fye" wrote: Nedan, Assuming that each record in this table is a transaction then you should be able to do: Select Month(DateOfSale) as MonthOfSale, Avg(ProductsSold) as AvgProdPerTrans FROM yourTable WHERE Year(DateOfSale) = 2009 GROUP BY Month(DateOfSale) ---- HTH Dale "Nedan Nedzatra" wrote: Hia! How are you friends!! Some help please; I have a 2 column table on Access 2002. One field(ProductsSold) has inetgers and the other dates spread over 2009(DateOfSale); 100000 transactions. I want monthly average product sold per transaction as a query result. The query result will have 2 fields with 12 records. Have a great New Year Friends. |
Thread Tools | |
Display Modes | |
|
|