M
Mitchell_Collen via AccessMonster.com
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
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