AVG(COUNT(timestamp))...this will not work, what am I doing wrong?

AVG(COUNT(timestamp))...this will not work, what am I doing wrong?

Post by Mitchell_C » Sun, 15 Jul 2007 06:13:47


Please help me. I want to find the average of the number of timestamps that
are in several tables. When i run the following, it will not work because I
can only use avg with a number datatype. (at least, that's what i understand)
I am just learning the syntax rules. the following works as long as i don't
include avg. Please help me.

Select avg( count(timestamp),area), datepart(hh,timestatmp), datepart(wd,
timestamp)
From lotsoftables
where timestamp between 05/01/2007 and 06/20/2007
Group by timestamp,datepart(hh,timestatmp), datepart(wd,timestamp),area

Thanks in advance.
-Misty

--
Message posted via http://www.yqcomputer.com/