A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Monthly Averages



 
 
Thread Tools Display Modes
  #1  
Old December 31st, 2009, 11:13 AM posted to microsoft.public.access.queries
Nedan Nedzatra[_2_]
external usenet poster
 
Posts: 12
Default 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  
Old December 31st, 2009, 12:03 PM posted to microsoft.public.access.queries
Dale Fye
external usenet poster
 
Posts: 2,651
Default 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  
Old December 31st, 2009, 03:36 PM posted to microsoft.public.access.queries
Nedan Nedzatra[_2_]
external usenet poster
 
Posts: 12
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:24 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.