access question

archcommus

Diamond Member
Sep 14, 2003
8,115
0
76
Originally posted by: zerocool1
I was wondering how to do an average of several tables?
Average a column? Same column in multiple tables? In a query, report? Need more information.
 

zerocool1

Diamond Member
Jun 7, 2002
4,486
1
81
femaven.blogspot.com
Ok, I've got several monthly reports from Oracle that I'm analzying. One field has name one, volume, one has dollar amount, one has the number of unique buyer. I'm trying to average the number of unique buyers over the course of several months.
 

EagleKeeper

Discussion Club Moderator<br>Elite Member
Staff member
Oct 30, 2000
42,589
5
0
Try to create a query to get all the data from the different tables.

From there you should be able to average the output.
 

archcommus

Diamond Member
Sep 14, 2003
8,115
0
76
Like EK said, you can include ALL the tables in your one query. Then you can pretty much do whatever you want with the various fields.
 

archcommus

Diamond Member
Sep 14, 2003
8,115
0
76
Well, when you refer to the unique buyers column from each month, you'll have to prefix it with the name of the table, for example month1.unique_buyers, month2.unique_buyers, to specify which table and column you're talking about. I'd imagine you could just plop those right into the avg() function.
 

zerocool1

Diamond Member
Jun 7, 2002
4,486
1
81
femaven.blogspot.com
Originally posted by: archcommus
Well, when you refer to the unique buyers column from each month, you'll have to prefix it with the name of the table, for example month1.unique_buyers, month2.unique_buyers, to specify which table and column you're talking about. I'd imagine you could just plop those right into the avg() function.

Its telling me I have too many arguments
 

Mark R

Diamond Member
Oct 9, 1999
8,513
16
81
Could you not use a union, then just avg() on one column? Use an appropriate group by clause, if necessary.