Sure, goes like...
SELECT TOP 10 Avg(items.field1) AS field1, Avg(items.field2) AS field2, items.dags, items.staff_no, staff.staff_name, staff.staff_no
FROM staff
LEFT OUTER JOIN items on (
staff.staff_no = items.staff_no
AND items.dags >=#01.12.2004#
AND items.dags <=#01.12.2005#
)
GROUP...
Ok, tried that
Seems like it’s getting somewhere. now i get the error
"The specified field 'staff_no' could refer to more than one table listed in the FROM clause of your SQL statement"
(my FROM clause just specifies "FROM staff" like you typed above)
I tried removing staff.staff_no from the...
Hi there
what i'm trying to do is something of the sort...
SELECT TOP 10 AVG(items.field1) AS field1, AVG(items.field2) AS field2, items.date, items.staff_no, staff.staff_name, staff.staff_no
RIGHT JOIN staff ON staff.staff_no = items.staff_no
WHERE
items.dags >=#01.12.2004# AND
items.dags...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.