weekly averages

vampke

New member
Local time
Today, 08:54
Joined
Oct 10, 2007
Messages
3
Hi guys,

I need to return a dataset to a vb.net program with weekly averages.

So far I have:
Code:
SELECT  AVG(a) as A, AVG(b) as B FROM results WHERE fk=0 GROUP BY DATEPART(ww,myDateTime)

I was hoping somebody could shed some light on why this doesn't work?
 
Have you actually tried creating a query in Access to test this? Then look at the SQL to view the syntax.

David
 
After you create the query in the QBE frame, you can select to view the SQL code. That will show you the "written" code.
 
i didn't enter the query this way: I entered the SQL statement manually.
why doesn't it work?
 
Try copy and pasting the "manual SQL" into the QBE and see if it works.
 

Users who are viewing this thread

Back
Top Bottom