Code:
SELECT Date_Lookup.Date, PQuery.SumOfHours FROM Date_Lookup, ( SELECT Hours.Date, Sum(Hours.Hours) AS SumOfHours FROM Hours WHERE (((Hours.ActCode)<>"UNAA" Or (Hours.ActCode)<>"SICK" Or (Hours.ActCode)<>"HOLI") AND ((Hours.Shift)="DAY") AND ((Hours.Area)="HYDRO")) GROUP BY Hours.Date ) as PQuery LEFT JOIN PQuery ON Date_Lookup.Date = PQuery.Date WHERE (((Date_Lookup.Date_Year)=2008))
I get "syntax error in JOIN operation".
Thanks in advance,
Sockpuppet
Comment