H
Huber57
To whom:
I am having trouble with translating T-SQL into Jet SQL.
I would like to write query that shows the avg question score by department.
So the query results would look like this:
Department Q1
MRI 3.5
XRay 3.7
Here is my query.
Select
'MRI' Department,
AVG(Question1) Q1
From
tblQuestions
Where
tblQuestions.date > Date() - 7
UNION
Select
'XRay' Department,
AVG(Question1) Q1
From
tblQuestions
Where
tblQuestions.date > Date() - 7
It doesn't work. Can anyone help me tweak it? Or am I totally screwed up?
Thanks.
I am having trouble with translating T-SQL into Jet SQL.
I would like to write query that shows the avg question score by department.
So the query results would look like this:
Department Q1
MRI 3.5
XRay 3.7
Here is my query.
Select
'MRI' Department,
AVG(Question1) Q1
From
tblQuestions
Where
tblQuestions.date > Date() - 7
UNION
Select
'XRay' Department,
AVG(Question1) Q1
From
tblQuestions
Where
tblQuestions.date > Date() - 7
It doesn't work. Can anyone help me tweak it? Or am I totally screwed up?
Thanks.